Public Sub ShowReport(ByVal OrderNo)
Dim theReport As New ReportDocument
theReport.FileName = "C:\Results.rpt"
CrystalReportViewer1.ReportSource = theReport
CrystalReportViewer1.Visible = True
Catch ex As Exception
MsgBox("An Error Occurred: " & ex.ToString())
I call the above code from another form as Rep.show(parameters) in a loop;
I want to know how should i close and dispose the report object ie, theReport.
As i get an error as below
"The maximum report processing jobs limit configured by your
system administrator has been reached.How I can Solve this
problem when i using crystal report to load from my
in google its suggested to close the report object. But when i give the thereport.close and thereport.dispose it gives an error like "Pure Virtual Function Call"