English

Problem: Page Size dialog box reports wrong dimensions after setting Page Size with Avenue

Description

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."

Cause

This is a known issue.

Solution or Workaround



Add the following line to your script.

Code:
aPageDisplay.SetUsingPrinterPageSize(false)

For example:

Code:
aLayout = Layout.Make
aDisplay = aLayout.GetDisplay
aDisplay.SetPageSize(34@44)
aDisplay.SetUsingPrinterPageSize(false)
aLayout.getwin.open
aDisplay.ZoomToPage
aDisplay.Invalidate(true)

Last Published: 5/5/2016

Article ID: 000004209

Software: ArcView GIS 3.2a, 3.2, 3.1, 3.0b, 3.0a, 3.0