Skip to main content

MapControl.ExportToXlsx(Stream) Method

Exports the data displayed by the Map Control to the specified stream in XLSX (MS Excel 2007) format.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.1.dll

NuGet Package: DevExpress.Win.Map

Declaration

public void ExportToXlsx(
    Stream stream
)

Parameters

Name Type Description
stream Stream

A Stream object to which data is exported.

Remarks

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

Note

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

See Also