XpsDocumentWriter Class
Assembly: System.Printing (in system.printing.dll)
XpsDocumentWriter has no constructor. To create an XpsDocumentWriter, use the static CreateXpsDocumentWriter method of the XpsDocument class or use one of the static CreateXpsDocumentWriter methods of the PrintQueue class. The document or the queue that creates the XpsDocumentWriter becomes the target to which it writes.
The following example shows how to create an instance of the XpsDocumentWriter class.
_xpsDocument = new XpsDocument(containerName,FileAccess.ReadWrite);
XpsDocumentWriter xpsdw = XpsDocument.CreateXpsDocumentWriter(_xpsDocument);
For the complete sample, see Saving an XPS Document Sample.
System.Windows.Documents.Serialization.SerializerWriter
System.Windows.Xps.XpsDocumentWriter
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Reference
XpsDocumentWriter MembersSystem.Windows.Xps Namespace