Symptom
- Saved Data option allows for quick testing and previewing.
- At runtime, the report should not be using Saved Data.
- How to remove saved data from a report in the IDE of Visual Studio .NET Crystal Reports designer?
Environment
- SAP Crystal Reports, developer version for Microsoft Visual Studio
- Microsoft Visual Studio 2010 / 2012
Resolution
- Preview the report in the Crystal Reports designer.
- Find the option "Save data in the report" in the top righ corner of teh preview:
- Uncheck the option.
- Saved data can also be discarded using the Crystal reprots APIs for Visual Studio .NET.
- Use the myReportDocument.Refresh() method:
Dim autoSaveData As Boolean = myReportDocument.ReportOptions.EnableSaveDataWithReport
If autoSaveData = False And myReportDocument.HasSavedData = True Then
MsgBox("Discarding unsaved data in the report")
End If
myReportDocument.Refresh()
myReportDocument.VerifyDatabase()
See Also
- Note that the Saved Data option in the SAP Crystal Reports stand-alone designer (CR 2008, CR 2011, CR 2013), the option is located under the File menu:
Keywords
crvs cr4vs 2012 2010 remove discard trash delete VS .NET , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To
Product
SAP Crystal Reports, developer version for Microsoft Visual Studio