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:
 Copy Code
ShowSettings=never
 Copy Code
ShowSaveAs=never
 Copy Code
ShowProgress=yes
 Copy Code
ShowProgressFinished=no
 Copy Code
ShowPDF=no
 Copy Code
ConfirmOverwrite=no

Namespace:  bioPDF.PdfWriter
Assembly:  bioPDF.PdfWriter (in bioPDF.PdfWriter.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function PrintFile ( _
	fileName As String, _
	printerName As String _
) As Boolean
C#
public static bool PrintFile(
	string fileName,
	string printerName
)
Visual C++
public:
static bool PrintFile(
	String^ fileName, 
	String^ printerName
)
JavaScript
bioPDF.PdfWriter.PdfUtil.printFile = function(fileName, printerName);

Parameters

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

Return Value

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