XpsDocumentWriter.Write Method (FixedDocumentSequence)

 

Writes synchronously a specified FixedDocumentSequence to the target XpsDocument or PrintQueue.

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

public override void Write(
	FixedDocumentSequence fixedDocumentSequence
)

Parameters

fixedDocumentSequence
Type: System.Windows.Documents.FixedDocumentSequence

A set of documents that is written to the XpsDocument.

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

The following example shows how to use the Write method to write a sequence of XPS documents. 

private void SaveMultipleFixedContentDocuments(
             XpsDocumentWriter xpsdw, FixedDocumentSequence fds)
{
    // Write the FixedDocumentSequence as a collection of documents
    xpsdw.Write(fds);
}

.NET Framework
Available since 3.0
Return to top
Show: