Nevron Open Vision Documentation
Word Documents (DOCX)

NOV rich text view lets you easily load and save document as Microsoft Word Documents in the DOCX file format.

Loading Word Documents

To load a Word Document from a file or from a stream you can use the Load methods of the rich text view as shown in the Loading Documents topic.

Loading a Word Document
Copy Code
Saving Word Documents

To save a document as a Word Document to a file or to a stream you can use the Save method of the rich text view as shown in the Saving Documents topic.

Saving a Word Document
Copy Code

Word Documents in the DOCX format are essentially a package that consists of XML and image files and is compressed to a ZIP archive. By default NOV rich text view uses medium compression level when creating a Word DOCX package. The medium compression level is a nice compromise between speed and compression ratio. If you want to change the compression level of a DOCX package, you should pass an NDocxSaveSettings instance with the proper value set to its CompressionLevel to the Save method.

Saving an Electronic Publication with a different compression level
Copy Code
NDocxSaveSettings saveSettings = new NDocxSaveSettings();
saveSettings.CompressionLevel = ENCompressionLevel.BestCompression;
m_RichTextView.SaveToFile(@"C:\MyDocument.docx", new NDocxTextFormat(), saveSettings);
See Also
Send Feedback