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?
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?
Are you sure you are saving the report again when you uncheck the Save Data setting?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@ 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
mlmcc
ok thanks. just checking.