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

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


public virtual void ExportToXps(
    string filePath,
    XpsExportOptions options
Public Overridable Sub ExportToXps(
    filePath As String,
    options As XpsExportOptions


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.


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


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