Book a Demo

Author Topic: Diagram PageHeight / PageWidth 0 and 1  (Read 3162 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Diagram PageHeight / PageWidth 0 and 1
« on: May 07, 2020, 08:40:58 pm »
Hi,


Just writing this up for future ref.

Diagram.PageHeight and .PageWidth are initially 0.
In the Diagram Properties - Page Setup - Advanced dialog ("Print Advanced"), the Custom page number fields are blank.

If you change any properties under Page Setup - Advanced (including Page Setup - Orientation), they get set to 1. The Custom page number fields are still blank.

There is no way to change the PageHeight and PageWidth back to 0. You can only change them by setting Custom page numbers, and you can't enter 0 (which wouldn't make sense).

I don't know whether these properties being 0 or 1 has any effect anywhere. I suspect it probably does.
Which means diagram might be rendered differently in documents or HTML depending on whether any user has ever made changes to these properties, which are not shown correctly in the GUI.


/Uffe
My theories are always correct, just apply them to the right reality.