【发布时间】:2013-10-21 17:16:53
【问题描述】:
我一直试图在我设计的 ASP.NET 应用程序中显示 Crystal Reports 报表。报告已正确制作,实际上在 Visual Studio 中我可以在预览页面中看到报告加载。当我尝试打开浏览器中有报告的页面时,问题就来了。什么都没有显示。不是错误,什么都没有。试过IE、Firefox等。
我使用内置的 Crystal Reports Viewer 工具并将报表添加为源。然后我在代码中添加了下一个:
ReportDocument crystalReport = new ReportDocument();
crystalReport.Load(Server.MapPath("~/CrystalReport3.rpt"));
crystalReport.SetDatabaseLogon
("suer", "apss", @"servername", "DBNAME");
CrystalReportViewer1.ReportSource = crystalReport;
但没有加载任何内容。没有。现在已经在这口井待了一天,但没有去。任何帮助将不胜感激。
【问题讨论】:
标签: asp.net visual-studio-2012 crystal-reports