Hello,
I am building an application that uses Telerik Reports and I need to figure out a way to be able to create a report independent of any database and then at runtime bind it to a DataSet created completely in code. To make matters worse, I am unable to add the reporting project to a solution that contains the project I need the report for because that project is a Web Site and there doesn't appear to be any way of getting that done. What I am able to do is to build the Report Project and then upload the binaries from the Report Project to the website. From there I can view the Report on the page using the ReportViewer.
Since I am not using a database, I am unable to use the Telerik Reporting Wizard to automatically create my dataset and databind the fields to the data. What I have done is added a DataSet to my Report Project and built it by hand using the designer to have the exact schema of my results DataSet that I am creating at runtime.
Here is essentially what I'm doing right now
1) Pull records I need in the report from the database into my code
2) Perform relatively complex business logic on the rows that is either impossible or unwise to do in SQL
3) While processing the rows, manually add the results to a DataTable which I then add to a DataSet
4) After processing, create a new instance of my report set myReport.DataSource = myDataSet
5) Add the report to the viewer
When I bring up the page that holds the viewer, the desired report appears in the viewer, but does not contain any data. Obviously there is a gap in my understanding of how Telerik Reporting works. Is it possible to bind data to a report without it necessarily being pulled from a database?
Thanks
I am building an application that uses Telerik Reports and I need to figure out a way to be able to create a report independent of any database and then at runtime bind it to a DataSet created completely in code. To make matters worse, I am unable to add the reporting project to a solution that contains the project I need the report for because that project is a Web Site and there doesn't appear to be any way of getting that done. What I am able to do is to build the Report Project and then upload the binaries from the Report Project to the website. From there I can view the Report on the page using the ReportViewer.
Since I am not using a database, I am unable to use the Telerik Reporting Wizard to automatically create my dataset and databind the fields to the data. What I have done is added a DataSet to my Report Project and built it by hand using the designer to have the exact schema of my results DataSet that I am creating at runtime.
Here is essentially what I'm doing right now
1) Pull records I need in the report from the database into my code
2) Perform relatively complex business logic on the rows that is either impossible or unwise to do in SQL
3) While processing the rows, manually add the results to a DataTable which I then add to a DataSet
4) After processing, create a new instance of my report set myReport.DataSource = myDataSet
5) Add the report to the viewer
When I bring up the page that holds the viewer, the desired report appears in the viewer, but does not contain any data. Obviously there is a gap in my understanding of how Telerik Reporting works. Is it possible to bind data to a report without it necessarily being pulled from a database?
Thanks