The following code snippet shows how to render a .docx document to HTML optimized for printing:
using(Viewerviewer=newViewer("sample.docx")){// Create an HTML file.varviewOptions=HtmlViewOptions.ForEmbeddedResources();// Render a file optimized for printing.viewOptions.ForPrinting=true;viewer.View(viewOptions);}
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.