62,267
社区成员
发帖
与我相关
我的任务
分享
crs.ReportDocument.SetDataSource(dt);
crs.DataBind();
this.crv.ReportSource = crs;
this.crv.DataBind();
ExportFormatType exportType;
if (this.type.ToUpper() == "P")
{
exportType = ExportFormatType.PortableDocFormat;
}
else if (this.type.ToUpper() == "E")
{
exportType = ExportFormatType.Excel;
}
else
{
exportType = ExportFormatType.PortableDocFormat;
}
this.crs.ReportDocument.ExportToHttpResponse(exportType, this.Page.Response, false, "");