回复 1楼hantongjun7的帖子
可以设置密码,代码如下:
- GrapeCity.ActiveReports.Export.Excel.Section.XlsExport ex = new GrapeCity.ActiveReports.Export.Excel.Section.XlsExport();
- ex.Security.Password = "test";
- GrapeCity.ActiveReports.PageReport report1 = new GrapeCity.ActiveReports.PageReport(new System.IO.FileInfo(Server.MapPath("PageReport1.rdlx")));
- ex.Export(report1.Document, this.Server.MapPath("test.xls"));
复制代码 |