Joined: 01 Oct 2008
Online Status: Offline
Posts: 5
Topic: memory cost too much when displaying image Posted: 11 Oct 2008 at 1:37pm
Hi,
When I display some images in a report with my program, it costs too much memory. The image file is small like 2MB, and even after it's read into the memory to create the object of ReportDocument, not much memory is used, but after the image is shown in the report, about 100MB memory is used.
This problem always causes "Out of memory" exception for my program when a lot of reports with a lot of images are open.
Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Posted: 13 Oct 2008 at 11:56am
A 2MB image is actually quite big for Crystal Reports. I had a similar problem and I loaded the image into Photoshop (or whatever program you want) and saved it as a smaller file. Since CR doesn't print high quality graphics, the report looked the same even though the image resolution was reduced.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum