Click here to Skip to main content
15,664,272 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm drawing a graph and saving it as ".bmp" format. I'm converting that image to binary format in a dataset, and then I'm exporting that image to crystal report. Now the problem is, It is showing Black as a background color. Please click the below link for the crystal report. any help or idea's would be highly appreciable.

Image here
Updated 15-Apr-18 20:31pm

Did you follow the following steps to show the Bitmap images in your crystal report: Step-bby-step guide[^]

Also, have a look at this article: How to Upload or Change an image in the Crystal Report at runtime[^]
Share this answer
hi, i got the same problem before.
The rootcause is this: your bitmap image has transparent background.

Just draw white background or something in color before your image is drawn.


System.Drawing.SolidBrush whiteBrush = new System.Drawing.SolidBrush(System.Drawing.Color.White);
System.Drawing.Rectangle rect = new System.Drawing.Rectangle(0, 0, 350, 200);
g.FillRectangle(whiteBrush, rect);

\\then continue to draw here
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900