A newer version of this page is available. Switch to the current version.

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.v18.2.Core.dll

Declaration

public virtual void ExportToXps(
    Stream stream,
    XpsExportOptions options
)
Public Overridable Sub ExportToXps(
    stream As Stream,
    options As XpsExportOptions
)

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