Skip to main content
A newer version of this page is available. .

MapControl.ExportToPdf(Stream, PdfExportOptions) Method

Exports the Map control’s data to the specified stream in PDF format using the specified options.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v19.2.dll

Declaration

public void ExportToPdf(
    Stream stream,
    PdfExportOptions options
)

Parameters

Name Type Description
stream Stream

A Stream object, to which the created document is exported.

options PdfExportOptions

A PdfExportOptions object which specifies the export options to be applied when the Map control is exported.

Remarks

This method exports the current map as a *.PDF file to an object of the Stream class or its descendants calling the PrintingSystemBase.ExportToPdf method and using the specified export options. After creating the PDF file, the map can be displayed in an appropriate application. For more information, refer to the PrintingSystemBase.ExportToPdf topic.

Note

The MapControl’s data can only be exported if the XtraPrinting Library is available.

See Also