|
I have seen many examples of fetching data from a certain table. In this case, the fields are generally fixed.
What I want to achieve is to use datatable as the data source, and the fields in the datatable are not fixed.
My thoughts are as follows:
new a reportdocument
reportdocument.load("... crystalReport.rpt")
reportdocument.setdatasource(....datatable or dataset)
rptViewer.datasource=reportdocument
How to set crystalReport.rpt at this time? |
|