| |
ActiveReports for .NET Support
Started by AA00977 at 04-04-2006 4:09 PM. Topic has 6 replies.
 
 
 
|
|
Sort Posts:
|
|
|
|
04-04-2006, 4:09 PM
|
AA00977
Joined on 02-26-2004
Pewaukee, WI
Posts 7
|
Large Memory Usage with CacheToDisk
|
|
|
|
|
|
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
|
|
|
|
|
Report
|
|
|
|
04-10-2006, 11:55 AM
|
AA00977
Joined on 02-26-2004
Pewaukee, WI
Posts 7
|
Re: Large Memory Usage with CacheToDisk
|
|
|
|
|
|
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.
|
|
|
|
|
Report
|
|
|
|
04-11-2006, 10:02 AM
|
brian-dd
Joined on 11-10-2005
DataDynamics
Posts 435

|
Re: Large Memory Usage with CacheToDisk
|
|
|
|
|
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.
|
|
|
|
|
Report
|
|
|
|
11-24-2009, 4:38 AM
|
Daniele Lev.On
Joined on 11-11-2009
Posts 4
|
Re: Large Memory Usage with CacheToDisk
|
|
|
|
|
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
|
|
|
|
|
Report
|
|
|
|
11-24-2009, 9:12 AM
|
AnkitN
Joined on 03-03-2009
Posts 844

|
Re: Large Memory Usage with CacheToDisk
|
|
|
|
|
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
|
|
|
|
|
Report
|
|
|
|
11-27-2009, 10:23 AM
|
Daniele Lev.On
Joined on 11-11-2009
Posts 4
|
Re: Large Memory Usage with CacheToDisk
|
|
|
|
|
At the momet i haven't an error. Thank's
|
|
|
|
|
Report
|
|
|
|
|
GrapeCity » Product Support » ActiveReports f... » Re: Large Memory Usage with CacheToDisk
|
|
|
|
|