Skip to main content

PrintingSystemBase.ExportToXps(Stream, XpsExportOptions) Method

Exports a document to the specified stream in XPS format using the specified XPS-specific options.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v24.1.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

public virtual void ExportToXps(
    Stream stream,
    XpsExportOptions options
)

Parameters

Name Type Description
stream Stream

A Stream object to which the created XPS file should be sent.

options XpsExportOptions

An XpsExportOptions object which specifies the XPS export options to be applied when a document is exported.

Remarks

Once the document export has started, it will run until the resulting document is complete and cannot be interrupted or canceled in the process.

Note

The ExportToXps method is only supported by the DXPrinting library (both for WPF and Silverlight).

Use this method to export a document to XPS format using the specified XPS export options (like PageByPageExportOptionsBase.PageRange). Note that in this instance, the current printing system’s export options, which are represented by the XpsExportOptions object returned by the ExportOptionsContainer.Xps property of a printing system’s PrintingSystem.ExportOptions, are ignored.

See Also