水晶报告引发“未指定报表名称”错误。
我在用
帮助是非常感谢的。
发布于 2012-08-07 07:08:43
尝试在<Report>中添加<CrystalReportViewer>标记,如下所示:
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="True" ReportSourceID="CrystalReportSource1" />
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
<Report FileName="CrystalReport.rpt">
</Report>
</CR:CrystalReportSource>或
动态添加水晶报表源如下:
ReportDocument reportdocument = new ReportDocument();
reportdocument.Load(Server.MapPath("CrystalReport.rpt"));
reportdocument.SetDatabaseLogon("Username","Password","Server","Database");
CrystalReportViewer1.ReportSource = reportdocument;https://stackoverflow.com/questions/11834933
复制相似问题