PROBLEM

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

Last Published: April 25, 2020

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)

Article ID:000004209

Software:
  • Legacy Products

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options