1. 通过 XlsExport 进行导出,或者 Viewer.Export 导出
- // Export the report in XLSX format.
- GrapeCity.ActiveReports.Export.Excel.Section.XlsExport xlsExport1 = new GrapeCity.ActiveReports.Export.Excel.Section.XlsExport();xlsExport1.FileFormat = GrapeCity.ActiveReports.Export.Excel.Section.FileFormat.Xlsx;
- // Set the file format of the exported excel file to Xlsx to support Microsoft Excel 2007 and newer versions.
- xlsExport1.Export(rpt.Document, Application.StartupPath + "\\XLSExpt.xlsx");
复制代码
2. 需要通过Viewer来显示报表
3..NET中无需此功能
4.调用Document.Print()方法即可 |