fcMTblPrintParams

Classes ››
Parent Previous Next

fcMTblPrintParams

This class is used to define the parameters for MTblPrint.

Instance Variables
PrinterName
String: Name of the printer to use. You can get a list of installed printers with MTblPrintGetPrinterNames. When STRING_Null, the default printer is used.

PrevWndTitle
String: Title of the preview window. When STRING_Null, a default title is used.

DocName
String: Name of the document. When STRING_Null, a default name is used.

Titles[*]
Array of fcMTblPrintLine: Contains the title lines. Don't modify, use the corresponding functions.

Totals[*]
Array of fcMTblPrintLine: Contains the total lines. Don't modify, use the corresponding functions.

PageHeaders[*]
Array of fcMTblPrintLine: Contains the page header lines. Don't modify, use the corresponding functions.

PageFooters[*]
Array of fcMTblPrintLine: Contains the page footer lines. Don't modify, use the corresponding functions.

TitleCount
Number: Number of title lines. Don't modify.

TotalCount
Number: Number of total lines. Don't modify.

PageHeaderCount
Number: Number of page header lines. Don't modify.

PageFooterCount
Number: Number of page footer lines. Don't modify.

PageNrs
Boolean: If TRUE, page numbers are printed at the bottom of every page.

NoPageNrsScale
Boolean: If TRUE, the page numbers aren't scaled.

Copies
Number: Number of copies to print.

Scale
Number: Scale factor ( 0 - 5 ). The output is smaller when < 1 and bigger when > 1. When 0, the output is scaled automatically. That means that if the function detects that the output is wider than the page and SpreadCols is FALSE, the output is scaled to fit into the page.

Orientation
Number: Orientation: MTP_OR_PORTRAIT or MTP_OR_LANDSCAPE.

GridType
Number: Grid type:

Grid type

Printed lines

Column header area

Row area

MTP_GT_TABLE

Inner and outer

Inner and outer

MTP_GT_STANDARD

Inner and outer

Inner vertical and outer

MTP_GT_STANDARD2

Inner and outer

Inner horizontal and outer

MTP_GT_STANDARD3

Inner and outer

Outer

MTP_GT_STANDARD4

Inner and outer

None

MTP_GT_NO

None

None

Invisible lines ( e.g. if you set the column flag MTBL_COL_FLAG_NO_ROWLINES, the row lines in the column are invisible ) are not printed, regardless of the grid type.

LeftMargin
Number: Left margin of the page in mm.

TopMargin
Number: Top margin of the page in mm.

RightMargin
Number: Right margin of the page in mm.

BottomMargin
Number: Bottom margin of the page in mm.

RowFlagsOn
Number: The flags a row should have to be printed.

RowFlagsOff
Number: The flags a row should not have to be printed.

ColFlagsOn
Number: The flags a column should have to be printed.

ColFlagsOff
Number: The flags a column should not have to be printed.

PrevWndState
Number: Window state of the preview window: MTP_WS_NORMAL, MTP_WS_MINIMIZED or MTP_WS_MAXIMIZED.

PrevWndLeft
Number: Left position of the preview window in pixels.

PrevWndTop
Number: Top position of the preview window in pixels.

PrevWndWidth
Number: Width of the preview window in pixels, min. value = 300, max. value = screen width.

PrevWndHeight
Number: Height of the preview window in pixels, min. value = 300, max. value = screen height.

PrevWndFullPage
Boolean: When TRUE, the preview is initially in full page mode.

FitCellSize
Boolean: When TRUE, the width and height of the printed cells are adapted to the cell text.
The following messages are sent while printing:
MTM_QueryBestCellHeight
MTM_QueryBestCellWidth
MTM_QueryBestColHdrWidth
MTM_QueryMaxColWidth
MTM_QueryMinColWidth
MTM_QueryMaxRowHeight
MTM_QueryMinRowHeight
If a column's Word Wrap property is set, only the height is adapted and no MTM_Query*Width messages are sent.

ColHeaders
Boolean: When FALSE, the column headers are not printed.

Language
Number: Specify MTP_LNG_ENGLISH, MTP_LNG_GERMAN or the ID of a registered custom language. The language refers to dialogues, messages, the preview window and automatic page numbers.

SpreadCols
Boolean: When TRUE, columns are spread across several pages if the total width of all columns exceeds the page width.

Preview
Boolean: When TRUE, the print output is shown in a preview window.

Functions
AddPageFooter
AddPageHeader
AddTitle
AddTotal
DeletePageFooters
DeletePageHeaders
DeleteTitles
DeleteTotals
Init

See also
Printing
Localization

Created with the Personal Edition of HelpNDoc: Easily create iPhone documentation