Hi,
I wanted to specify the option “Discard Saved Data on Open” in Crystal Report.
To do this, first I go to File > Options then select Reporting Tabpage.
Here I am trying to specify “Discard Saved Data on Open” option. After specify this option I saved the crystal report.
But when I open the report next time this option was unchecked.
How should we specify this option “Discard Saved Data on Open” permanenetly?
Regards
JummaHi,
Make sure that save data with report option is unchecked.
Madhivanan|||Hi Jumma
Use the below code. Trust same will help.
Set crystal = New CRAXDRT.Application 'MANAGES REPORTS
Set Report = crystal.OpenReport(a) 'OPEN OUR REPORT
// BELOW ONE LINE, YOU HV TO USE FOR YOUR REQUIREMENT \\
Report.DiscardSavedData
Report.Database.SetDataSource rs

No comments:
Post a Comment