Adding dynamic dataset at runtime to Crystal Report
Hey,
I've created a dynamic dataset to be displayed in a datagridview at runtime. This all works fine. I want now to print the data using a Crystal Report. The problem is that I'm not able to import the data dynamically to the Crystal Report.
I know you can import a dataset to Crystal Reports but then you need a dataset schema and in my application that's not fixed. I've created something where you can view the days when you worked. Each day is displayed in the column of the number of hours you worked.
E.g. you worked two days for seven hours and three days for eight hours then you haven two columns with two and three dates. The week after that you can work one day seven hours, the next day eight and the day after that nine hours. Then you haven three columns...
Is there a way to solve this and display with Crystal Reports?? It doesn't have to work with a dataset, maybe with XML or another object that can be imported into Crystal Reports??
I use Visual Studio 2005 with Crystal Reports.
Many thanks if you can help...
Re: Adding dynamic dataset at runtime to Crystal Report
Have you checked out the VS 2005 Walkthrough?
http://diamond.businessobjects.com/node/222
Re: Adding dynamic dataset at runtime to Crystal Report
I've checked the walktrough but it can't help me.
The big problem is that I don't know how many columns I will have in my report. Can't I just copy my dataset to the Report or something like that??
Re: Adding dynamic dataset at runtime to Crystal Report
In my opinion you need to spend a little more time in the analysis & design phases
-One always can know how many columns the report will have
-Remember that you can change the column's headers
-Change report design ,maybe changing the columns by rows or using cross-tab expert