PdfUtilPrintFile Method

Printer API Documentation
Send a file to the printer set in the PrinterName property. This method will use the PrintTo verb to send a file to the printer and create a PDF document. You often want to create a runonce.ini before calling this method. It is recommended that you set the following settings:
ShowSettings=never
ShowSaveAs=never
ShowProgress=yes
ShowProgressFinished=no
ShowPDF=no
ConfirmOverwrite=no

Namespace:  pdf7.PdfWriter
Assembly:  pdf7.PdfWriter (in pdf7.PdfWriter.dll) Version: 4.0.0.0 (4.0.1000.111)
Syntax

public static bool PrintFile(
	string fileName,
	string printerName
)

Parameters

fileName
Type: SystemString
Full path of document to print.
printerName
Type: SystemString
Name of printer to be used from this method.

Return Value

Type: Boolean
Returns true if the document was sent to the printer. Otherwise, it returns false.
Remarks

This method uses the printto verb to send the document to the printer. It requires that there is an association between the file type you specify and a printto verb.
See Also

Reference