Hi, I have inserted the code snippet below where I am showing the report. I am using Visual Studio 2008 Crystal Report engine. It works great with a piece of code
Problem: Each time the report is run, it generates files (.. tmp, .. rpt) in the temp folder c: \ windows \ temp however we can get rid of the * .tmp files by setting up processing in the application pool, but you need to get rid from .rpt files.
Solution Found: Call Close () and Dispose () in the report object. The way I do this is crReportDoc.Close (), then crReportDoc.Dispose ()
Actual problem: If Dispose () is called , the following error appears in the report : "The object reference is not installed in the object instance"
I will be very grateful if one of my teammates can help me with the solution, since I am completely new to programming.
thank
Dim crReportDoc = New CrystalDecisions.CrystalReports.Engine.ReportDocument
crReportDoc = Session("ReportDocument")
ReportViewer.DisplayToolbar = True
ReportViewer.EnableDrillDown = True
ReportViewer.DisplayGroupTree = False
ReportViewer.Visible = True
ReportViewer.DisplayToolbar = True
ReportViewer.ReportSource = crReportDoc
source
share