System.IO.MemoryStream m_stream = new System.IO.MemoryStream();
ActiveReportsDemo.Reports.ZXJJYZXS rpt1 = new ActiveReportsDemo.Reports.ZXJJYZXS();
GetData(ref rpt1);
rpt1.Run();
GrapeCity.ActiveReports.Export.Html.Section.HtmlExport csvExport1 = new GrapeCity.ActiveReports.Export.Html.Section.HtmlExport();
csvExport1.Export(rpt1.Document, m_stream);
Response.ContentType = "text/html";
Response.AddHeader("content-disposition", Server.UrlPathEncode("attachment;filename=客户订单.html"));
Response.BinaryWrite(m_stream.ToArray());
Response.End(); |
|