LayoutProperties()

Summary

Displays an extended version of the "Print Setup" common dialog, with controls for setting page dimensions and margins.

Syntax

props = LayoutProperties()

Returns

An array of information about the layout, as follows:

Element Type Contents
1 Integer The width of the layout in printer pages
2 Integer The height of the layout in printer pages
3 Array Four integers: the top, left, bottom, and right margins, in user paper units

Notes

  • This function replaces LayoutPrintSetup(). The GISDK now uses all the common dialogs for printing. These dialogs are implemented in the Windows printer drivers. Printer settings no longer need to be maintained in GISDK variables in the interface.

  • Changes made through the common "Print Setup" dialog remain in effect and become the current settings for that printer in Maptitude. Thus, the returned values do not have to be set in GISDK to take effect.

Example

result = LayoutProperties()
new_width = result[1]
new_height = result[2]
RunMacro("Set New Margins", result[3])

Error Codes

Error Type Meaning
Error No default printer, or printer not available
Escape User canceled out of the common dialog

See Also

Function Summary
LayoutPrintSetup() Collects print settings for a layout window
PrintLayout() Prints all or part of a layout window
SetLayoutPages() Sets the number of printed pages in a layout