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

MapControl.ExportToPdf(Stream) Method

Exports the MapControl’s data to a PDF document and sends it to the specified stream.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.2.dll

NuGet Package: DevExpress.Win.Map

#Declaration

public void ExportToPdf(
    Stream stream
)

#Parameters

Name Type Description
stream Stream

A Stream object which the created document is exported to.

#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. 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