![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | =?utf-8?B?UmU6IGhvdyB0byBjcmVhdGUgWFBTIGRvYyBpbiBzZWNvbmRhcnkgdGhyZWFk?= Hi Sam, How are you creating your XPS documents? The .NET 3.0 XpsDocumentWriter class provides a WriteAsync() method that does not require the application to create a secondary thread (the asynchronous operation is handled internally). For details please see the following MSDN links: XpsDocumentWriter Class http://windowssdk.msdn.microsoft.com...windows.xps.xp sdocumentwriter.aspx XpsDocumentWriter.WriteAsync Method http://windowssdk.msdn.microsoft.com...windows.xps.xp sdocumentwriter.writeasync.aspx The "Reading and Printing XPS Documents" article, section "Save a Document Asynchronously" (page 9), discusses and outlines the code to use with the XpsDocumentWriter.WriteAsync() method. http://www.microsoft.com/whdc/xps/xps-read.mspx "Saving an XPS Document Sample" provides full source code to a working sample that writes XPS documents both synchronously and asynchronously. http://windowssdk.msdn.microsoft.com.../ms771722.aspx Other XPS document related SDK Samples http://windowssdk.msdn.microsoft.com.../ms771669.aspx I hope these help. Thanks for your interest and please let us know if you have any other questions. Sincerely, Jack Davis [MS Windows Client SDK] -----Original Message----- From: Sam Jost Posted At: Wednesday, September 06, 2006 7:27 AM Posted To: microsoft.public.windows.developer.winfx.general Conversation: how to create XPS doc in secondary thread Subject: how to create XPS doc in secondary thread Can anyone point me to some examples how to create XPS documents in a background thread? So far all examples I've seen need the dispatcher of the GUI thread, so creating large documents stops the GUI, making the program feel dead to the user. Thanks, Sam |
My System Specs![]() |