简体   繁体   English

Crystal可以报告对象公开数据表吗

[英]Can Crystal Reports Object Expose Data Table

Good day. 美好的一天。

We're creating crystal reports by providing the report with a data table. 我们通过为报表提供数据表来创建水晶报表。

  myReport.dataSource = myDataTable

Is there a way to get the data table back from the report object later in the code? 有没有办法在代码后面的代码中从报表对象取回数据表?

  DataTable myDataTable = myReport.getDataSource()

Thanks ST 感谢ST

我认为您可以通过以下方式做到

 DataTable myDataTable = myReport.Database.Tables[0];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM