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)