| Topics 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.