加载报表失败问题!在线等!!
CallData data = new CallData();
data = (new CallFacade()).GetDataByAll();
//data为数据dataSet
ReportDocument Rd = new ReportDocument();
string xpath = Server.MapPath(@ "../system1/CrystalReport.rpt ");
Rd.Load(xpath);
Rd.SetDataSource(data);
CrystalReportViewer1.ReportSource = Rd;
CrystalReportViewer1.DataBind();
html代码::
<form id= "form1 " runat= "server ">
<div>
<CR:CrystalReportViewer ID= "CrystalReportViewer1 " runat= "server " AutoDataBind= "true " />
</div>
</form>
(@ "../system1/CrystalReport.rpt路径是对!!怎么会出现加载报表失败呢??在线等!!
------解决方案-------------------- 报表打印控件wsReport4.6