This sample is used to export the attribute table of a vector dataset or a tabular dataset into Excel.
Control/Object/Interface | Properties | Methods |
Plugin | Initialize(), ExitInstance() | |
CtrlAction | Run() | |
IDockBar | DockStyle, Control, Visible | |
Application | ActiveApplication, MainForm, Workspace | Output() |
IFormMain | DockBarManager | |
Workspace | Datasources | |
Dataset | Type | |
Layer | Dataset | |
DatasetVector | Query() | |
Recordset | RecordCount, FieldCount | MoveFirst(), MoveNext(), GetFieldInfos(), GetFieldValue() |
Datasource: the datasource where the dataset whose attribute table you want to export is located. Here we choose World.
Dataset: the dataset whose attribute table you want to export into Excel. Here we choose Countries.
Destination: click to specify where you want to place the result file and the name of the .xls file.
![]() |
![]() |
![]() |
SuperMap iDesktop 7C\SampleData\World\World.udb.
When you successfully compile ExportAttributeToExcel.sln, SuperMap.Desktop.ExportAttributeToExcel.dll and SuperMap.Desktop.ExportAttributeToExcel.config will be generated and copied to SuperMap iDesktop 7C\Bin\Plugins\ExportAttributeToExcel and SuperMap iDesktop 7C\WorkEnvironment\Default respectively. Each time you start SuperMap iDesktop 7C, the ExportAttributeToExcel plugin will be loaded.
If you want to remove the ExportAttributeToExcel plugin from SuperMap iDesktop 7C, you only need to delete SuperMap.Desktop.ExportAttributeToExcel.config in the SuperMap iDesktop 7C\WorkEnvironment\Default folder.