Displaying Word Documents
The ImGearWordDocument can be created and processed in any thread with any apartment state: STA or MTA. If it also needs to be displayed, then there are some concepts which should be taken into account:
- In WPF display scale mode the document must be created in the UI thread, otherwise a System.InvalidOperationException will be thrown, stating that "The calling thread cannot access this object because a different thread owns it”. This is requirement of Windows Presentation Foundation.
- In Native display scale mode, which is the default for ImageGear, there are no restrictions for displaying Word pages in a multithreaded environment.
Additional Information
The following topics are covered in this section:
Below are the groups of the Open XML WordprocessingML, which ImageGear supports (read only):