PrintDocument Method

Prints the XFF file to the specified printer.


Object.PrintDocument(tcPrinterName, tcJobname, 
                     tnFrom [, tnTo [, tcDEVMODE 
                     [, tnPagesPerSheet [, tnAllEvenOdd
                     [, tnCopies [, tnUnderlineHyperlinksOnPrint
                     [, laFindString [, lcOutput]]]]]]]])

Parameters

tcPrinterName
   Then name of the printer to which the document will be sent

tcJobName
   The printer job name

tnFrom
   If numeric, the first page to be printed.

tnTo
   The last page to be printed.

tcDEVMODE
   
DEVMODE structure. 

tnPagesPerSheet
   The number of pages per sheet .

tnAllEvenOdd
   Include all pages, odd or even only.  The allowed values are:

   1 ... all pages (default value)
   2 ... odd pages
   3 ... even pages

tnCopies
   The number of copies.

tnUnderlineHyperlinksOnPrint
   Print hyperlink... 
   0 - No print hyperlink
   1 - Print hyperlink in blue color
   2 - Print hyperlink in green color 


laFindString (XFRX 15.4)
 A array contains strings for   highlight  (background color yelow).

lcOutput (XFRX 15.5) 
 A output file name for virtual printers such as Microsoft XPS Document Writer, PDFCreator.


Alternatively, tnFrom can contain a string value, containing the pages numbers separated by commas and ranges separated by dashes, e.g.:

“1,2,5-6,8,20-30”

Return values

-100 … cannot initialize printer device
-101 … cannot initialize printer driver
-102 … cannot initialize DEVMODE structure
     0 … no errors

Remarks

Applies To: XFRX#DRAW