BCL easyConverter SDK
easyConverter SDK Usermanual
PDF-to-Word Programming API  |  Download Free Trial  |  Contact Us to Purchase

OutputDocumentFormat Property

Determines the output document file format: RTF, DOC, or DOCX.

Sub OutputDocumentFormat(newVal As Bool)



One of optOutputDocumentFormat values:

OPT_OUTPUT_RTF = 1 - Native RTF output (Default),
OPT_OUTPUT_DOC_VIA_OFFICE = 2 - DOC output through RTF via Microsoft Office,
OPT_OUTPUT_DOCX_VIA_OFFICE = 3 - DOC output through RTF via Microsoft Office,
OPT_OUTPUT_DOC = 4 - Native DOC output. No Microsoft Office involved.

Exception Handling

Please refer to the list of return exceptions.

Example Usage

oConverter = CreateObject("EasyConverter.PDF2Word.4")

' Set the option to save as native .DOC file
oConverter.OutputDocumentFormat = OPT_OUTPUT_DOC
Call oConverter.ConvertToWord(inFileName, outFileName)

Compatibility Note

Previous versions of easyConverter had properties SaveAsDoc and SaveAsDocx. They had been replaced by the OutputDocumentFormat property.