Link to home
Start Free TrialLog in
Avatar of FCapo
FCapo

asked on

Crystal reports save data in the report - VB.net

Hi,

I'm using vb.net with crystal reports XI Release 2,

I have a lot of reports in my app and I'm facing a very frustrating issue that keep returning, the checkmark in the "Main report preview" for "save data in the report" keeps checking itself, this makes all the reports inaccurate displaying old data, I need to manually click the refresh button in order to get the most recent data.

Regardless of me unchecking the option "save data in the report", it randomly checks itself again for certain reports, this continually happens and can never resolve itself regardless of how many times I keep unchecking itself.

Any ideas?
Avatar of peter57r
peter57r
Flag of United Kingdom of Great Britain and Northern Ireland image

Are you sure you are saving the report again when you uncheck the Save Data setting?
SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of FCapo
FCapo

ASKER

Yes,

before I publish the project, I have to go through each report and uncheck the option. I know I've done this over 100 times and saved it just as many times. For some reason it randomly reverts back to the checking it again.

mlmmc,

I've done that, but it doesn't stop the old reports from reverting back to this setting, there's something triggering this option and I can't figure it out at all.

Would you know how to use the DiscardSavedData method?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@ mlmcc @FCapo: what kind of object is rptObject? I'm having a similar problem, but I don't have the '.DiscardSavedData' method available to me. My report object is of the type: ReportDocument. Should it be something else?
I believe that is what it should be.

mlmcc
ok thanks. just checking.