Jul 24, 2009
Ok, the error I'm getting is "Load Report Failed" and it happens when I need to load a large number of crystal ReportDocument objects. I've searched on this, and there is a property in the registry that you can change to -1 and it allows to load more, however I'm still getting the error, just after I get about twice as many documents loaded.
View 1 Replies
The report is basically a one page document (for each client in the database with an interest charge). It displays the amount of interest charged, and other information pertaining to the charge. These documents are basically printed out and mailed to the client.
I created a "Print Preview" screen which has a CrystalReportViewer object, and an ArrayList property. The ArrayList property has an array of all reports, and there are next and back buttons to browse through each report. Once they are satisfied, they will print them all out, and I can dispose of the objects.
The solution for this, from everywhere I've seen, is to "Dispose the object after you are done with it". My problem is that I can't dispose it until they are finished with the print preview screen.
Is there a better way to go about this that won't require too much time to code (we are already over the deadline on this project) or a simple solution to get past the ReportDocument limit? Right now it is erroring on report 150., There are 180 records (as of today) that need to be loaded.