Ticket T320632
Visible to All Users

How to change a page size

created 9 years ago (modified 9 years ago)

[DevExpress Support Team: CLONED FROM T320563: Diagram Save to SQL]
Hi at DevE…

And first  - thanks for the update to 15.2 :-)

But one of the new things is the diagram function and of course one of the things I started looking at.

And is the only page-size settings the size of the area ?

Answers approved by DevExpress Support

created 9 years ago

Hi,

To re-size a page, use the DiagramControl.OptionsView.PageSize  property.

Let me know if you need any further assistance.

    Show previous comments (2)
    DevExpress Support Team 9 years ago

      I remember that you asked about page size within the scope of the print/export feature. However, if you decide to change the page size of a real DiagramControl, not the print/export output, to A4 or any another format, it is possible using the static PaperSizeCalculator class that our developers have prepared for you. So, to obtain the necessary pixel size by using a particular paper kind, use the static PaperSizeCalculator.GetPixelSize method. Then, assign this value to the DiagramControl.OptionsView.PageSize property.

      Of course, we will add a corresponding feature in the future.

      MH MH
      Michael Hornshøj 9 years ago

        Hi again…
        Svetlana, this is why I use DevE - when something is missing, or a feature is presented to you, you take this with in the upcoming versions. Just superb !!!
        Will have a look at your reference to PageSizeCalculator later when I get home, and give it a try.
        Thanks for your replies, and have a nice weekend
        Michael

        DevExpress Support Team 9 years ago

          OK. Let us know your results, Michael.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.