Skip to main content

PrintingSystemBase.ExportToXps(String, XpsExportOptions) Method

Exports a report to the specified file path 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(
    string filePath,
    XpsExportOptions options
)

Parameters

Name Type Description
filePath String

A String which specifies the file name (including the full path) for the created XPS file.

options XpsExportOptions

An XpsExportOptions object which specifies the XPS export options to be applied when a report 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 report to an XPS file using the specified XPS export options (PageByPageExportOptionsBase.PageRange). Note that in this instance, the current report export options, which are represented by the XpsExportOptions object returned by the ExportOptionsContainer.Xps property of a printing system’s PrintingSystem.ExportOptions, are ignored.

This method overwrites any files present at the specified path that have the same file name without any warnings.

See Also