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.
ImageGear renders only accepted revision changes of the document; i.e., if it has "Track Changes" enabled, please make sure to accept all/required changes in the document prior to opening it with ImageGear.