0

该报告在 Visual Studio 2005 中运行良好,但在 IIS 上部署时失败。它提示,您请求的报告需要更多信息。我认为它需要安装一些 SQL Server 客户端或 Crystal Reports 的服务包。请建议。

4

1 回答 1

1

您可以在运行时通过代码设置报表的数据源,这样您的报表就不需要连接到数据库。

CrystalReport1 report = new CrystalReport1();
DataTable dt = new DataTable();
report.SetDataSource(dt);
crystalReportViewer1.ReportSource = report;
crystalReportViewer1.Refresh();
于 2010-01-09T08:46:14.183 回答