Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: memory cost too much when displaying image Post Reply Post New Topic
Author Message
Todane
Newbie
Newbie


Joined: 01 Oct 2008
Online Status: Offline
Posts: 5
Quote Todane Replybullet 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.

Any ideas? Thanks a lot!
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet 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>
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
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



This page was generated in 0.031 seconds.