Click or drag to resize

ExcelDataExportInfo Class

Holds the information nesessary to export data tables to excel files
Inheritance Hierarchy

Namespace:  Easymap.AddIn.Export
Assembly:  EasyMap.AddIn (in EasyMap.AddIn.dll) Version: 12.0.0.0
Syntax
public sealed class ExcelDataExportInfo : DataExportInfo
Remarks
Use the Filename property to specify the output file.
Examples
Exports a table named "Data"
C#
Easymap.Document doc = easymapControl.Document;
Easymap.ExcelDataExportInfo info = doc.Export.CreateExcelDataExportInfo();
info.Filename = "test.xlsx";
info.DataSources.Add((Easymap.ILTComponent)doc.DataSources.FindByCaption("Data"));
doc.Export.ExportData((Easymap.IDataExportInfo)info);
VBScript
set app = CreateObject("Easymap.Application")
set doc = app.CurrentDocument
set info = doc.Export.CreateExcelDataExportInfo()

info.Filename = "test.xlsx"
info.DataSources.Add doc.DataSources.FindByCaption("Data")

doc.Export.ExportData(info)
See Also