Using Picture Object of Crystal Report
Using the Dynamic Graphic Location of picture OLE object of crystal report, we can change picture dynamically at run-time.
1. Create a parameter field in the report with string data type.
2 In the report Add a picture OLE object. inside report right click->Insert->OLE object- >select Bitmap Image
3 Right click the OLE picture object and select Format Object- >select Picture tab ->Graphic location -> inside it drag the parameter field.
in the front end just pass the Image URL to the report
ParameterDiscreteValue crParameterimgLocation;
string img_url = @"\\images/newImages/nevadadot.JPG";
img_url = Server.MapPath(img_url);
crParameterField = crParameterFields["imgLocation"];
crParameterValues = crParameterField.CurrentValues;
this.crParameterimgLocation = new ParameterDiscreteValue();
this.crParameterimgLocation.Value = img_url;
//Add current value for the parameter field
crParameterValues.Add(crParameterimgLocation);
Note: while passing the Image URL do not put put single quotes.
Follow this link also-
http://natrajt.blogspot.com/2008/06/dynamic-images-at-runtime-in-crystal.html