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.
Set oPrinter = CreateObject("easyPDF.Printer.7")
Set oPrintJob = oPrinter.OutlookPrintJob
' Set Outlook specific option
oPrintJob.QueueWaitTimeout = 100000
oPrintJob.PrintOut "C:\input.msg", "C:\output.pdf"