nRet = MTblPrint( hWndTbl, cMTblPrintParams )

Prints or previews a table.

Parameters
hWndTbl
Window Handle: Handle of the table

cMTblPrintParams
fcMTblPrintParams: Parameters

Return
Number: Number of printed pages ( if preview then always 1 ) or one of the following error constants:

MTP_ERR_MARGINS_TOO_BIG

The margins are too big

MTP_ERR_NO_COLS_TO_PRINT

No columns to print

MTP_ERR_NO_PRINTER

No printer installed

MTP_ERR_INVALID_PRINTER

Invalid printer name

MTP_ERR_INITIALIZE

The initialization failed

MTP_ERR_NOT_SUBCLASSED

The table isn't subclassed with MTblSubClass

MTP_ERR_INVALID_LANG

The specified language is invalid.

Example
In this example a table is printed with default settings on the default printer:

Call Params.Init( )
Call MTblPrint( hWndTbl, Params )

Remarks
Split rows are not supported.

See also
Printing

Created with the Personal Edition of HelpNDoc: Free Web Help generator