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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why doesn't my report refresh? (Saved Data)

Connection Problems

Why doesn't my report refresh? (Saved Data)

by  kenhamady  Posted    (Edited  )
Crystal Reports has a handy option of allowing you to save data with a report. This allows you to run or view a report without having access to the database that the data was drawn from. CR does this by saving the necessary records and fields as part of the RPT file.

The problem is that when you first install CR this feature is ON by default. This means that until you shut this feature off, every report is saved with the last records viewed. This wastes space, and causes a great deal of confusion for developers.

The test to see if your report has saved data is simply to close it and reopen it in the report designer. If it immediately goes to preview, then you have saved data. If it opens in design mode, then you don't have saved data.

To shut the feature off you have to go to 2 different places. To shut it off (or back on) for an existing report you open that report and go to File - REPORT options.

To change the global default for all new reports created you go to File - Options, and select the Reporting tab.

Now, when you shut this off, you might get a new error when you run your report from your VB application. That is actually good news. It means that now your report is TRYING to connect to the database (and failing). But at least it is trying.

Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and eBooks.
http://www.kenhamady.com/
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