MapControl.ExportToDocx(String, DocxExportOptions) Method
SECURITY-RELATED CONSIDERATIONS
Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.
Exports a map to the specified file in the DOCX format with the specified settings.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v25.2.dll
NuGet Package: DevExpress.Win.Map
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| filePath | String | The file path (includes the file name and extension) where the file should be created. |
| options | DocxExportOptions | The export settings that are used to export the map to the file. |
Remarks
This method overwrites any files present at the specified path that have the same name.
Make sure that your project references the DevExpress.XtraPrinting.25.2 assembly to be capable of using the following methods and export the Map Control:
- MapControl.ExportToDocx
- MapControl.ExportToImage
- MapControl.ExportToMht
- MapControl.ExportToPdf
- MapControl.ExportToRtf
- MapControl.ExportToXls
- MapControl.ExportToXlsx
In addition, the Map Control provides methods you can use to export vector map layers (VectorItemsLayer and InformationLayer) to vector file formats: