vs2008自带水晶报表打印问题
使用vs2008自带的水晶报表,b/s系统,在服务器端打印报表一切正常,在客户端打印会弹出一个对话框:“服务器出错,将停止打印。您是否要查看错误信息?”,但打印正常!
我重新做了一个简单的报表测试,报表中仅放一个字符串,不连接数据库,仍然弹出窗口。代码很简单了,如下:
protected void Page_Load(object sender, EventArgs e)
{
ReportDocument rdd = new ReportDocument();
rdd.Load(Server.MapPath("aaa.rpt"));
CrystalReportViewer1.ReportSource = rdd;
}
是何原因?