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

Refreshing report data from VB application 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello

I'm using VB6(front end) and Access2000(back end)for a data entry application. I'm accessing crystal reports from the vb application. Is it possible to refresh the report data from within the application or to set the crystal reports so that the data is refreshed when printed to the screen?

Thaks in advance
 
Thank you for the response but how do you turn it off? The report does not exist in Crystal Reports - It exists in VB only. CR hasn't done a very good job providing documentation for development within VB and I don't find any place to turn this switch off inside of VB.
 
If you are creating the report within VB (using a DSR) than there is no "Save Data with Report" option.

Why your data persists probably has to do with the order that your code processes things. I would start a new thread for this question, in the Integration forum. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Here's the fix: in the Crystal Reports Viewer "Unload" event, set the report equal to nothing along with other clean-up items.

Set m_Report = Nothing

This will ensure the report is recreated with the fresh data.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top