WPF平台AR11
代码:
string dir = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);//系统桌面路径
string filename = "导出文件.xls";
GrapeCity.ActiveReports.Export.Excel.Section.XlsExport xlsexpt = new XlsExport();
xlsexpt.FileFormat = FileFormat.Xlsx;
xlsexpt.UseCellMerging = true; //合并单元格,所见即所得
GrapeCity.ActiveReports.SectionReport RPT = 区域报表实例;
xlsexpt.Export(RPT.Document, dir + "\\" + filename);
Process.Start("explorer.exe", dir); //打开生成的文件夹
|