回复 5楼frank.zhang的帖子
恩,这里按您说的成功了,但是如果要导出这个报表,我取到参数之后又如何将DataSet给报表呢,如果是后台直接取到数据,如何让数据加载进去- protected void Button1_Click(object sender, EventArgs e)
- {
- GrapeCity.ActiveReports.PageReport _reportDef =
- new GrapeCity.ActiveReports.PageReport(new System.IO.FileInfo(Server.MapPath("000002.rdlx")));
- GrapeCity.ActiveReports.Document.PageDocument prpt =
- new GrapeCity.ActiveReports.Document.PageDocument(_reportDef);
- prpt.LocateDataSource +=
- new GrapeCity.ActiveReports.LocateDataSourceEventHandler(Document_LocateDataSource);
- ExportExcel(this.Context, _reportDef);
- }
复制代码 |