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

OutputFileName Property

Gets/Sets output file name.

Type:

String

Remarks

You can use this property to get/set output PDF file name.

If you are not the owner of the print job, changes you make will be applied only if there is no other owner. There will be no owner if the print job was not started by the PrintOut method from one of the PrintJob objects (e.g., someone printing from application's "File"->"Print" menu).

Also, if there are multiple printer monitor instances running, the changes you have made may be overridden by other monitor instances.

Example Usage


' Declare variable with "WithEvents" keyword
Private WithEvents oJobMonitor As easyPDFPrinter.PrintJobMonitor

Private Function oJobMonitor_OnPrinterInit(ByVal uID As Long, ByVal JobInfo As easyPDFPrinter.PrintJobInfo) As Long
    MsgBox "Output file name: " + JobInfo.OutputFileName
    oJobMonitor_OnPrinterInit = PRN_MON_CONTINUE_CONVERSION
End Function

' ...

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.PrintJob
Set oJobMonitor = oPrinter.PrintJobMonitor
oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"