Large Memory Usage with CacheToDisk


04-04-2006, 4:09 PM

I have a fairly large report that we create and export to PDF.  When the report gets to a certain size, we get a memory error.  I've been trying to find ways to keep the memory usage down.  I'm using version 3.4.0.2027 and tried using CacheToDisk.  I can see the temp files being created in IsolatedStorage, but the memory usage continues to grow to over 1GB.

The report does contain images on each page that cannot be removed.

Any ideas?

Bill

Re: Large Memory Usage with CacheToDisk


04-05-2006, 3:18 PM

Bill,

Does this report use subreports? Approximately how many pages is this report? Is this a web or windows application?

Re: Large Memory Usage with CacheToDisk


04-10-2006, 11:55 AM

I am not using sub-reports but it does have embedded graphics that can change from page to page.  There is also a bar code control on each page as well.  This is running as a Windows Console app.  The report is run several times each time the program is executed, based on different filter criteria.  The full report will be output to a PDF file and smaller filtered reports will be exported to a text file.

Without using the the CacheToDisk property, the program may crash while I'm running the report.  With CacheToDisk = True, it normally crashes during the PDF export.

I start running into problems when the number of letters is somewhere around 500 pages.  Most days the reports is around 300 pages but can be as large as 900.

Re: Large Memory Usage with CacheToDisk


04-11-2006, 10:02 AM
Are you re-using any of these images that are on the report?  If so you have duplicates of the same image, you can cut down on memory if you only load the image into the report object once, like in a report wide image varable.  Then assign each picture control that would use it, to that image.

Re: Large Memory Usage with CacheToDisk


11-24-2009, 4:38 AM
I had tried to use  cachetoDisk for Run my report  but ever in OutOfRange ...

I'd read now that if i use the same picture in the page i can optimizied it.

I put my firm's logo in a top of page (Pageheader) ... in every page ...
Can i load it only once time ?

Thank's a lots

Re: Large Memory Usage with CacheToDisk


11-24-2009, 9:12 AM
Hello Daniele,

If you want to display the same firm’s logo on the top of every page in the PageHeader section then I would suggest you to use the following code snippet in the ReportStart event:

Image img = Image.FromFile("C:\\grapecity_logo.gif");
picture1.Image = img;


If you still get the error then I would request you to provide me the following information:
1) Version of ActiveReports you are using?
2) How big your report is?
3) Size of image, if possible then please provide us the image?
4) Snapshot of the error message.
5) When you are getting this error, at the time of rendering or at the time of exporting to PDF?

If possible could you please provide us the RPX and RDF file of your report so that I test the issue at my end. Any further information provided to isolate the issue would be appreciated.

Regards,
Ankit Nigam


Re: Large Memory Usage with CacheToDisk


11-27-2009, 10:23 AM
At the momet i haven't an error.
Thank's