Results 1 to 8 of 8

Thread: loading data to a crystal report one by one

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    6

    Talking loading data to a crystal report one by one

    I have used crystal report 9 in my vb6 project with sql server 2000. I have used a combo box on a vb form to place file numbers and ask user to select a number to generate a report. at the first time report is visible. for the second time no report is generated. but report format is visible. I have used refresh method to the crystal report viewer ( CRViewer91.Refresh). please help me soon.
    tks
    Niroshan

  2. #2
    Junior Member Coke's Avatar
    Join Date
    Mar 2007
    Posts
    31

    Re: loading data to a crystal report one by one

    hey niroshan2006, i tried using the refresh(coding) but i didnt work too. It just show the previous report right.? Mine did.
    Did you try the manual refresh button.?
    hmm. you are only using one report to display for each file number? Or?
    And does that report recieve parameters.?

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

    Re: loading data to a crystal report one by one

    Did you change your RecordSource for the viewer each time too?
    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

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    6

    Re: loading data to a crystal report one by one

    Quote Originally Posted by Coke
    hey niroshan2006, i tried using the refresh(coding) but i didnt work too. It just show the previous report right.? Mine did.
    Did you try the manual refresh button.?
    hmm. you are only using one report to display for each file number? Or?
    And does that report recieve parameters.?

    Yes I used manual refresh also. when I used refresh method and manual refresh I get only the blank report for the second file number. I used only one report to display details of all files

  5. #5

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    6

    Re: loading data to a crystal report one by one

    Yes I used manual refresh also. when I used refresh method and manual refresh I get only the blank report for the second file number. I used only one report to display details of all files
    (Rate)

  6. #6
    Junior Member Coke's Avatar
    Join Date
    Mar 2007
    Posts
    31

    Re: loading data to a crystal report one by one

    hmm. have you tried what ROBDOG888 suggested.? the source.?

  7. #7

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    6

    Re: loading data to a crystal report one by one

    Quote Originally Posted by Coke
    hmm. have you tried what ROBDOG888 suggested.? the source.?
    no
    PLEASE HELP ME BY GIVING THE CODE

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

    Re: loading data to a crystal report one by one

    If you have one report already loading then there is no real code to post as you would just change your report that you are passing when you .OpenReport and then .SetDataSource to the ADO recordset that pertains to the report and finally set the .ReportSource to the opened report object.
    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

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