Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XpsDocumentWriter.Write Method (String)

Writes synchronously a specified XPS document to the target XpsDocument or PrintQueue.

Namespace: System.Windows.Xps
Assembly: System.Printing (in system.printing.dll)

public void Write (
	string documentPath
)
public void Write (
	String documentPath
)
public function Write (
	documentPath : String
)
Not applicable.

Parameters

documentPath

The path of the source document.

Although the XpsDocument class has a singular name, an XpsDocument can be one FixedDocument or a set of multiple documents. This method adds the FixedDocument elements in the source to the set of FixedDocument elements in the target XpsDocument or PrintQueue.

This Write method will reserialize the specified XPS document which will remove all content from the Package that is not required to be preserved by the XML Paper Specificatio. The reserialization will also remove all extensions from the FixedPage markup, including any extended XPS content.

By design this Write method does not call the WritingPrintTicketRequired event.

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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft