PROBLEM
After setting a layout's page size using an Avenue script, the Layout Page Setup dialog box does not reflect the new dimensions, it shows the default setting, "Same as Printer."
This is a known issue.
Add the following line to your script.
Code:
aPageDisplay.SetUsingPrinterPageSize(false)
Code:
aLayout = Layout.Make
aDisplay = aLayout.GetDisplay
aDisplay.SetPageSize(34@44)
aDisplay.SetUsingPrinterPageSize(false)
aLayout.getwin.open
aDisplay.ZoomToPage
aDisplay.Invalidate(true)
Get help from ArcGIS experts
Download the Esri Support App