Hello Umesh,
I know your post is old, but I am posting the solution which wored for me so that it can be useful for others.
I got similar code here
http://scn.sap.com/docs/DOC-6093 and modified it according to my requirement.
This is the code, hope this will help:
CrystalDecisions.CrystalReports.Engine.ReportDocument reportDocument =
new CrystalDecisions.CrystalReports.Engine.ReportDocument();
ISCDReportClientDocument reportClientDocument;
CrystalDecisions.ReportAppServer.ReportDefModel.Section mySection;
CrystalDecisions.ReportAppServer.ReportDefModel.PictureObject myPicture;
//load the main report
reportDocument.Load(Server.MapPath("CrystalReport.rpt"));
//cast it as a reportclientdocument
reportClientDocument = reportDocument.ReportClientDocument;
//grab the specific section of the report that we want to put the picture in
mySection = reportClientDocument.ReportDefController.ReportDefinition.ReportHeaderArea.Sections[0];
//import the picture object into the main report
myPicture =
reportClientDocument.ReportDefController.ReportObjectController.ImportPicture(Server.MapPath("nm.jpg"),
mySection, 1, 1);
//view the report
CrystalReportViewer1.ReportSource = reportDocument;You can get more samples from here:
http://wiki.sdn.sap.com/wiki/display/BOBJ/NET+RAS+SDK+SamplesThanks,
NMathur
Edited by nmathur - 24 Jul 2012 at 11:27pm