Grid.Print

Grid.Print (

string ObjectName,

boolean WYSIWYG = false,

boolean ShadedPrintOut = true,

table MarginInfo = nil )

Description

Prints the contents of the grid object.

Parameters

ObjectName

(string) The name of the grid object.

WYSIWYG

(boolean) Whether to print in WYSIWYG mode or size-to-width mode. This is an optional argument and if omitted will default to false.

VALUE

DESCRIPTION

true

Print in WYSIWYG mode.

false

Print in size-to-width mode. (Default)

ShadedPrintOut

(boolean) Whether or not to print with shaded cells. This is an optional argument and if omitted will default to true.

VALUE

DESCRIPTION

true

Print with shaded cells. (Default)

false

Do not print with shaded cells.

MarginInfo

(table) A table of margin information for the print. Pass nil to use the default margin settings. This is an optional argument and if omitted will default to nil. All values are optional. If omitted, the default will be used. All values are numbers and are in character units. That is the average size of a character in the Grid object.

KEY

TYPE

DESCRIPTION

HeaderHeight

number

The size of the header.

FooterHeight

number

The size of the footer.

LeftMargin

number

The left margin.

RightMargin

number

The right margin.

TopMargin

number

The top margin.

BottomMargin

number

The bottom margin.

Gap

number

The gap between the header and column headings.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also: Related Actions