Search Wiki:
Resource Page Description
The sample XPS applications demonstrate how to perform some common programming tasks with the XPS Document API.

Sample Name Download Link Description
FlowText FlowText.zip Demonstrates how to place a DirectWrite text layout on an XPS canvas and then save it as an XPS document. For more information about this example, see FlowText.
XpsLoadModifySave XpsLoadModifySave.zip Demonstrates how to load an XPS document from a stream, and then modify and save the modified document. For more information about this example, see XpsLoadModifySave.
XpsRollup XpsRollup.zip Demonstrates how to combine multiple XPS documents into a single XPS document and how to rename the resource parts to prevent part name conflicts. This sample illustrates how to identify and navigate the component parts of an XPS document. For more information about this example, see XpsRollup.


The samples are available in both C# for .Net 3.5 developers, and C++ for Win32 developers.
Last edited Oct 9 2009 at 9:39 PM  by ASTDC, version 10
Comments
WillSullivan wrote  Sep 14 2009 at 6:08 PM  
by "flow text" you mean "flow document", right?

Harbinger wrote  Apr 26 2012 at 2:45 AM  
In XpsFlowText sample,why after I change the output string from english characters to Chinese characters,the document generated quite slowly?

Updating...
Page view tracker