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

ConvertAttachments Property

Enables/disables the automatic conversion of attachments.

Default value: False (disabled).




When ConvertAttachments is enabled (True), the Outlook message's attachments are individually printed, one at a time.

Note that in case an error happens while printing any of the attachments, the entire PrintOut function will fail. This means, for example, that if the message contains a RAR attachment, it will likely fail during printing, because PrintJob does not normally know how to print a RAR file. In those cases you need to disable the automatic printing of attachments. Typical attachments that will work fine include DOC, XLS, TXT, JPEG, and anything that PrintJob can normally handle.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.OutlookPrintJob
oPrintJob.ConvertAttachments = True ' Enable the automatic conversion of Outlook attachments
oPrintJob.PrintOut "C:\test\input.msg", "C:\test\output.pdf"