Back to Devexpress

MapControl.ExportToPdf(Stream) Method

windowsforms-devexpress-dot-xtramap-dot-mapcontrol-dot-exporttopdf-x28-system-dot-io-dot-stream-x29.md

latest1.8 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public void ExportToPdf(
    Stream stream
)
vb
Public Sub ExportToPdf(
    stream As Stream
)

Parameters

NameTypeDescription
streamStream

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

MapControl Class

MapControl Members

DevExpress.XtraMap Namespace