Export (0) Print
Expand All

XpsDocument.CreateXpsDocumentWriter Method

Creates an XpsDocumentWriter for writing an XpsDocument.

Namespace: System.Windows.Xps.Packaging
Assembly: ReachFramework (in reachframework.dll)

public static XpsDocumentWriter CreateXpsDocumentWriter (
	XpsDocument xpsDocument
)
public static XpsDocumentWriter CreateXpsDocumentWriter (
	XpsDocument xpsDocument
)
public static function CreateXpsDocumentWriter (
	xpsDocument : XpsDocument
) : XpsDocumentWriter
You cannot use methods in XAML.

Parameters

xpsDocument

The XPS document to write.

Return Value

The XpsDocumentWriter to use for outputting the XML Paper Specification (XPS) document.

The following example shows how to use the CreateXpsDocumentWriter method in order to write an XpsDocument.

// Save as a WordXML document.
WordXmlSerializer.SaveToFile(fileName, flowDocument.ContentStart, flowDocument.ContentEnd);
return true;

For the complete sample, see the Document Serialization Sample.

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.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2015 Microsoft