DocPrintΒΆ

DocPrint prints the pages from the document to the printer.

bool = DocPrint(hDoc)
bool = DocPrint(hDoc, nStartPage, nEndPage)
bool = DocPrint(hDoc, ssFile, nStartPage, nEndPage)

Return Value

If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0).

Parameters

hDoc

Identifies the document.

nStartPage

nStartPage is the page number of the first page to be printed, nStartPage >= 1.

nEndPage

nEndPage is the page number of the last page to be printed.

ssFile

ssFile is the file name if the document is printed into a file.

Example

Comment

If the function is called via the one parameter case only the current page will be printed.

Example

Print all document pages.

DocPrint(hDoc, 1, 256);

History

Version

Description

5.1.2

New parameter ssFile.

id-114637