Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

XpsDocumentWriter.WriteAsync-Methode (String)

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

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

public void WriteAsync (
	string documentPath
)
public void WriteAsync (
	String documentPath
)
public function WriteAsync (
	documentPath : String
)
Nicht zutreffend.

Parameter

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 WriteAsync 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 WriteAsync method does not call the WritingPrintTicketRequired event.

Microsoft .NET Framework 3.0 wird unter Windows Vista, Microsoft Windows XP SP2 und Windows Server 2003 SP1 unterstützt.

.NET Framework

Unterstützt in: 3.0
Anzeigen: