BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

GetPrintJobTypeOf Method

Gets the PrintJob type that is suited for a given file.

Function GetPrintJobTypeOf(FileName As String) As prnPrintJobType

prnPrintJobType GetPrintJobTypeOf(string FileName)

prnPrintJobType GetPrintJobTypeOf(String FileName) throws PrinterException

Parameters

Remarks

An Error is raised if the file does not exist.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")

nType = oPrinter.GetPrintJobTypeOf("C:\test\input.doc")

If nType = PRN_PRNJOB_WORD Then
    MsgBox "WordPrintJob"
Else
    MsgBox "Not WordPrintJob"
End If