Word Interop ExportAsFixedFormat

T

TillmanZ

Hi!
I am trying to publish a document as PDF using the ExportAsFixedFormat method.

This is how I am calling it:
oDoc.ExportAsFixedFormat("test.pdf", Word.WdExportFormat.wdExportFormatPDF,
false,
Word.WdExportOptimizeFor.wdExportOptimizeForPrint,
Word.WdExportRange.wdExportAllDocument, 1, 1,
Word.WdExportItem.wdExportDocumentContent, true, true,
Word.WdExportCreateBookmarks.wdExportCreateNoBookmarks, true, true, true,
oMissing);

This results in an error: System.ArgumentException Value is out of bounds (I
am manually translating here...)

Any idea why this does not work - or even better - is there a resource where
this method is explained in detail (with examples)?

Thanks for the support!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top