Results 1 to 11 of 11

Thread: [RESOLVED] Crystal reports - huge report, how to speed it up?

Hybrid View

  1. #1

    Thread Starter
    Member Arto's Avatar
    Join Date
    Jul 2005
    Location
    Lappeenranta, Finland
    Posts
    41

    Resolved [RESOLVED] Crystal reports - huge report, how to speed it up?

    Hi,

    I have a problem with crystal reports. I've created one single report which should show me everything from certain ms access tables(two tables). In my sql query there is two date(string) confinings. In this table where I want my data out is over 500 000 rows. I've optimized my query and it should be as fast as it can be. But anyway my problem is that the report is so darn slow. It takes over 45 minutes to show up.

    Like I said that the query is as fast it can be, I've performed it in ms access and this query works fine (and fast). So the problem isn't in my query, I think crystal reports is braking my report.

    What can I do to speed it up?
    Last edited by Arto; Aug 5th, 2005 at 01:29 AM.
    "Testing? What's that? If it compiles, it is good, if it boots up, it is perfect."
    -Linus Torvalds

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

    Re: Crystal reports - huge report, how to speed it up?

    Do you have any conditional or selection formulas in your report? When you run it through Access how long does it take. How about any subreports, etc? How are you connecting to your db in CR?
    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
    Junior Member
    Join Date
    Nov 2004
    Location
    Philippines
    Posts
    27

    Re: Crystal reports - huge report, how to speed it up?

    Quote Originally Posted by Arto
    Hi,

    I have a problem with crystal reports. I've created one single report which should show me everything from certain ms access tables(two tables). In my sql query there is two date(string) confinings. In this table where I want my data out is over 500 000 rows. I've optimized my query and it should be as fast as it can be. But anyway my problem is that the report is so darn slow. It takes over 45 minutes to show up.

    Like I said that the query is as fast it can be, I've performed it in ms access and this query works fine (and fast). So the problem isn't in my query, I think crystal reports is braking my report.

    What can I do to speed it up?
    Saving data in the report has a big effect to the speed of the report. Try to see if the "Save Data with Report" option is selected. If yes, that may be the cause.

  4. #4

    Thread Starter
    Member Arto's Avatar
    Join Date
    Jul 2005
    Location
    Lappeenranta, Finland
    Posts
    41

    Re: Crystal reports - huge report, how to speed it up?

    Quote Originally Posted by RobDog888
    Do you have any conditional or selection formulas in your report? When you run it through Access how long does it take. How about any subreports, etc? How are you connecting to your db in CR?
    There's no formulas in my report at all(well, I use CRs sum function once at report footer). When I run it through access it takes only few seconds, so I think there's nothing wrong in my query. And no, there's no subreports. Only one group. CR is connected to database via ODBC. Any suggestions?
    Last edited by Arto; Aug 5th, 2005 at 12:41 AM.
    "Testing? What's that? If it compiles, it is good, if it boots up, it is perfect."
    -Linus Torvalds

  5. #5

    Thread Starter
    Member Arto's Avatar
    Join Date
    Jul 2005
    Location
    Lappeenranta, Finland
    Posts
    41

    Re: Crystal reports - huge report, how to speed it up?

    Quote Originally Posted by oreo
    Saving data in the report has a big effect to the speed of the report. Try to see if the "Save Data with Report" option is selected. If yes, that may be the cause.
    Where can I see this option? When I run my report it few seconds stress my cpu 100% and then it starts to swap. It's creating this huge temp file to my hard-drive.
    "Testing? What's that? If it compiles, it is good, if it boots up, it is perfect."
    -Linus Torvalds

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

    Re: Crystal reports - huge report, how to speed it up?

    File > Report Options > uncheck "Save data with report.".
    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

  7. #7

    Thread Starter
    Member Arto's Avatar
    Join Date
    Jul 2005
    Location
    Lappeenranta, Finland
    Posts
    41

    Re: Crystal reports - huge report, how to speed it up?

    Oh, I see

    And it works! Now this report shows up after 1-2 minutes. Great, thanks.
    "Testing? What's that? If it compiles, it is good, if it boots up, it is perfect."
    -Linus Torvalds

  8. #8
    Addicted Member
    Join Date
    Jun 2005
    Posts
    139

    Re: [RESOLVED] Crystal reports - huge report, how to speed it up?

    I don't have a solution to Arto's query but saving data with report will cause the report to return the old data. It will not reflect the updated status of the data. This scenario is advisable for static data.

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

    Re: [RESOLVED] Crystal reports - huge report, how to speed it up?

    Has anyone ever had a situation where Save Data With Report is used or even necessary?
    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

  10. #10

    Thread Starter
    Member Arto's Avatar
    Join Date
    Jul 2005
    Location
    Lappeenranta, Finland
    Posts
    41

    Re: [RESOLVED] Crystal reports - huge report, how to speed it up?

    Quote Originally Posted by RobDog888
    Has anyone ever had a situation where Save Data With Report is used or even necessary?
    I think it is useful when you need to export(.pdf, doc..) your report fast. If you have "save data with report" unchecked exporting takes longer time, but if it's checked you can export you report in notime.
    Last edited by Arto; Aug 7th, 2005 at 04:55 AM.
    "Testing? What's that? If it compiles, it is good, if it boots up, it is perfect."
    -Linus Torvalds

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

    Re: [RESOLVED] Crystal reports - huge report, how to speed it up?

    True, but with static old data dont seem valid if you need updates.
    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