Last post Sep 04, 2013 02:15 AM by nr.aravind
Sep 02, 2013 04:47 AM|malina|LINK
i have a crystal report using c#....
now i need to get different header logo for different client...
i store the logos in one folder of my application....
how can i do that ...
Sep 02, 2013 04:56 AM|MetalAsp.Net|LINK
Send the full path to the image as a parameter to the report. Use that to point the image accordingly.
Sep 02, 2013 05:06 AM|malina|LINK
here is my code...can u suugest me how to do
ReportDocument rptDoc = new ReportDocument();
DataSet ds = new DataSet(); // .xsd file name
DataTable dt2 = Getovr(sting id);
rpt.SetDatabaseLogon("", "", "", "");
CrystalReportViewer1.ReportSource = rpt;
Sep 02, 2013 05:40 AM|MetalAsp.Net|LINK
Maybe this thread will provide you the help/example you need:
Sep 03, 2013 05:35 AM|cnranasinghe|LINK
Sep 03, 2013 11:30 AM|Ajay2707|LINK
As above said, you just change your image path into dataset at run-time.
If you save it into your db side , then just change in db entry.
Report automatically get the image at run-time as per accessible path which you pass from your code or even from your database entry too..
Sep 04, 2013 02:15 AM|nr.aravind|LINK
Instead of writing code in C# Code, you can go with the Formula in Crystal Report using OLE Object.
In Formula Set the Graphic Location.
Get the Image Path as a parameter in Crystal Report.
Use the below formula in the Formula Window in Crystal Report
Replace DATABASE_FIELD with DataBase Name attached in the Crystal Report.
and Replace IMAGESERVERPATH with Path Column in the Crystal Report.