Results 1 to 4 of 4

Thread: Adding dynamic dataset at runtime to Crystal Report

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2007
    Posts
    27

    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...

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2007
    Posts
    27

    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??

  4. #4
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    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
  •  



Click Here to Expand Forum to Full Width