Skip to end of metadata
Go to start of metadata

With WordWriter, there is often more than one way to do something, and these different techniques can have tradeoffs in terms of complexity and performance.

This topics section offers best practices and guides to compliment the tutorials section. While the tutorials focuses on how to do something, the topics section focuses on when you use certain techniques, and why.

Word file representation in WordApplication

WordWriter represents a Microsoft Word document as a tree, similar to how Word itself represents a document. Most types of elements used with WordApplication correspond to entities that exist in an actual Word document, with some exceptions. Here is the recursive tree structure that WordWriter uses:

Inserting elements using WordApplication

Each of the elements listed in the document tree structure inherit from the Element class, which provides most of the methods for inserting new elements into a document. WordApplication will allow you to call any Insert method on almost any type of element, but the behavior of that method will change depending on what type of element the method is called on and what type of element the method is inserting

SharePoint Solution - Word Export Plus

Word Export Plus is a SharePoint solution that demonstrates a usage of the OfficeWriter API in SharePoint. This solution adds a new context menu button to list items, allowing you to export the list data to a pre-formatted Word template that can be designed yourself in Word, or automatically generated by Word Export Plus.

Inserting HTML with WordApplication

SoftArtisans' open source project HTMLToWord allows users to insert well-formed HTML(XHTML) snippets into Word documents as formatted text.

 

 

 

 

  • No labels