Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > WinFX General

Vista - =?utf-8?B?UmU6IGhvdyB0byBjcmVhdGUgWFBTIGRvYyBpbiBzZWNvbmRhcnkgdGhyZWFk?=

 
 
Old 09-11-2006   #1 (permalink)
=?utf-8?B?SmFjayBEYXZpcw==?=


 
 

=?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 SpecsSystem Spec
 

Thread Tools



Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46