|
-
Dec 4th, 2007, 05:08 AM
#1
Thread Starter
Junior Member
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...
-
Dec 4th, 2007, 05:13 AM
#2
Re: Adding dynamic dataset at runtime to Crystal Report
Have you checked out the VS 2005 Walkthrough?
http://diamond.businessobjects.com/node/222
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Dec 5th, 2007, 05:03 AM
#3
Thread Starter
Junior Member
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??
-
Dec 5th, 2007, 12:17 PM
#4
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|