且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在水晶报表中显示数据

更新时间:2023-10-08 08:38:34

OK尝试我的建议....


  • 验证报告中的数据库
  • 确认您在数据集中或数据表中有数据
  • 为数据集&数据表与报表中的数据相同.
  • 如果报表中的表名称为Table1,则您的代码应如下所示.
OK Try my suggestions....


  • Verify database in the report
  • Confirm you have data in the dataset or datatable
  • Give the name for Dataset & Datatable same as in the report.
  • If the table name is Table1 in report then your code should be like below.
DataTable dt = new DataTable("Table1");


与数据集也相同.
如果报表中的数据集名称为Dataset1,则您的代码应如下所示.


Also the same to dataset.
If the dataset name is Dataset1 in report then your code should be like below.

DataSet ds = new DataSet1("Dataset1");