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

getting new data without refreshing

Status
Not open for further replies.

earme

Programmer
Jul 27, 2000
155
US
Hello,

I have a VC++ program that displays a report with charts that I made in Crystal Reports. The charts were made as generating one for each group and then I made individual changes to each one. The only way to keep the individual changes to the charts was to save the data with the report. However, now when I veiw the report in my program it shows it with the saved data, and won't use the new data from the database until I choose refresh. I don't want to refresh after the ViewReport because that would cause another flash and even more delay.
Does anyone know how to make it look at the new data before I call ViewReport?

Thanks!
Evie
 
If there is always a fixed number of groups - as you created the charts for each group individually - ?? If there is, remove the charts from the main report and create a sub report for each group. Link to the subreports on your group field and then the correct chart will show for each group. Splitting the charts up onto their own reports should enable you to save the charts with their individual settings, with having selected 'save data with report'.
 
CR automatically saved the data with the report, which I didn't realize it did. I told it not to and it works fine now.

Thanks!!!
Evie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top