Displaying Excel Documents
The ImGearExcelBookDocument and ImGearExcelSheetDocument objects can be created and processed in any thread with any apartment state: STA or MTA. If they also need to be displayed, then there are some concepts which should be taken into account:
- In WPF display scale mode the calling thread must use the STA apartment state, which is a requirement of Windows Presentation Foundation. ImageGear will create a WPF Canvas in the context of this calling thread to render the document pages for display.
- In Native display scale mode, which is the default for ImageGear, there are no restrictions for displaying Excel 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.