on 09-25-2012 2:08 PM
Hi ,
I'm trying to load images, from my machine local path into crystal report and show the report.
While i have more than 10 images to show and navigate through the report, i get memory full exception.
All my images are resized to size around 200 -250KB with resolution less than 1500 *1500.
The report loads properly but, cannot navigate through due to memory full.
The log shows error:
Details : Out of memory.
StackTrace : at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Rectangle srcRect, GraphicsUnit srcUnit)
at CrystalDecisions.Windows.Forms.PageControl.OnPaint(PaintEventArgs e)
The rpt object is not able to release memory properly after this error is thrown and hence re-running the report also goes wrong.
I'm using VS2010 with CR Runtime SP4 Version on a Win-XP machine.
I had tried with disposing the bitmap image objects after save and also the rpt objects properly after the report is closed.
Would like to know, your suggestions on this, on how could the memory usage can be done more efficeintly using crystal report
and specifically while drawing bitmap images to a report.
Thanks in advance,
Neena M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Back to this:
While i have more than 10 images
How many more?
The report engine is not very good at processing large number of images. You can try to minimize the size of the images, the quality, get more CPU, etc., but that is about it. Reason I asked about WPF is because the WPF viewer is even worse at handling images.
- Ludek
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.