Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding subreports cause my report to open/run slowly.

Subreports

Adding subreports cause my report to open/run slowly.

by  caimoss  Posted    (Edited  )
(NOTE: This FAQ also posted in the "BO: Crystal Enterprise" forum, as it may not be diagnosed as a Crystal Reports problem, but as a CE problem)

Applies to Crystal Reports 9 (Advanced, Developer, Professional, Standard):

While any subreport will cause a performance hit to a main report, sometimes that hit is a lot bigger than expected.

Consider a report that contains 1 to N subreports. It is possible to have two different copies of the same exact report created, where one will open in CR or run in CE/CE-RAS in a matter of seconds, while the other might take over a minute just to open up (most noticable in CR). You can see the time it takes by going to the menu

Report-->Performance Information

And selecting the "Performance Timing" node in the tree.

The problem lies with how the subreports are imported. Importing them through a UNC-mapped drive can kill your performance. The relevant information is here:

http://support.businessobjects.com/library/kbase/articles/c2014546.asp

Note that if it takes your report a minute to open in Crystal Reports, it will take the same amount of time, plus your data access and execution time, for the report to run through CE or Standalone RAS. If you have a poor performing report on those systems, try opening the report in CR first and see if this is the problem.

You can tell if a subreport has been imported this way by right-clicking on the subreport in CR and choosing "re-import subreport". This works best if the subreport does not exist in the exact location from where it was originally imported, because CR will tell you it can't find the report at path "\\networkserver\d\reports\etc" or something like that. If it displays a UNC path like that, re-import the subreport from a local copy (e.g., c:\temp\mysubreport.rpt), save, and then re-open the report in CR. You should see substantial improvement in performance.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top