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.2.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 | Xps |
An Xps |
#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 Export
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.