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

OutlookPrintJob Object Description

This object is a specialized version of PrintJob object. In addition to all the features from PrintJob object, OutlookPrintJob object includes Outlook specific features.

If you need to set Outlook specific options, use this specialized object instead of generalized PrintJob object. However, do not use this object for printing documents other than the ones Outlook can handle.

NOTE: Due to the technical limitation of Outlook, OutlookPrintJob cannot perform multiple conversions at once. You can still execute PrintOut method from multiple instances at the same time, but the actual conversion will happen one at a time, and waiting print jobs will timeout if they wait for more than the value specified in QueueWaitTimeout property.

NOTE: On 64-bit Windows OutlookPrintJob only works from Outlook 2010 x64.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.OutlookPrintJob
' Set Outlook specific option
oPrintJob.QueueWaitTimeout = 100000
oPrintJob.PrintOut "C:\test\input.msg", "C:\test\output.pdf"