Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfStreamingExporter.Export(String, PdfExportOptions) Method

Exports a report to the specified file path in PDF using the specified PDF-specific options.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

public void Export(
    string fileName,
    PdfExportOptions options = null
)

#Parameters

Name Type Description
fileName String

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

#Optional Parameters

Name Type Default Description
options PdfExportOptions null

A PdfExportOptions object which specifies the PDF export options to be applied when a report is exported.

#Remarks

Use this method to export a report in PDF using the specified PDF export options (like PdfExportOptions.ImageQuality, PdfExportOptions.NeverEmbeddedFonts and others.) In this case, the current report export options, which are specified by the ExportOptions.Pdf property accessed using the report’s XtraReport.ExportOptions property, are ignored.

If you want to use the current report export options, call the overloaded PdfStreamingExporter.Export method without the options parameter.

See Also