我曾做过二维的报表打印,我的做法是把要打印的统计信息下载到客户端借助Excel来打印。
//.........................................................................
string srtExpFile = "DC_RPT";
Response.AddHeader("Content-Disposition",
"attachment;filename=" + srtExpFile + ".xls");
Response.Charset = "UTF-8";
Response.ContentType = "application/vnd.ns-excel";
Response.Charset = "";
StringWriter sm = new StringWriter ();
Html32TextWriter hm = new Html32TextWriter(sm);
//注意下面的ReportTable(System.Web.UI.HtmlControls.HtmlTable),
//我把要打印的信息放在了ReportTable中
this.ReportTable.RenderControl(hm) ;
Response.Write(sm) ;
Response.Charset = "";
this.Response.End ();
//.......................................................................
当时由于项目急,我没来得及用水晶报表的表格展现二维数据,就用这种方式做了,很意外的是客户很满意,他说就这样对了,他可以自由的控制打印东西。