Click here to Skip to main content
15,894,410 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
plz help..
can i show image in crystal report without using database if yes then how? again one time i confirm to u image not in database.
thanks in advance......
Posted
Comments
V. 24-Feb-12 7:40am    
Do you want to load it dynamically or define one fixed image for a report?
dA.d 26-Feb-12 22:55pm    
yes, i want to define one fixed image in crystal report..
thanks for rply...

To add my two cents (sorry for the late reply). I would create an rpt file with Crystal Reports (if you have the application, otherwise you'll have to use Visual Studio, but it is dreadful). You can add an image in the rpt just like you would in a word document. Make sure to place it in the section report header or page header depending on what you need.

Load up the report in the .NET viewer (with parameters if applicable) and it should work.

hope this helps.
 
Share this answer
 
Comments
dA.d 27-Feb-12 22:51pm    
sorry i am not understand ur solution plz give me detail info.
V. 28-Feb-12 1:40am    
In the Crystal Reports designer add an image with the appropriate menu option. It's even in the toolbar, hover over all the buttons until you find it, press it and select the image from your hardrive, then you can place it on the report. Are you familiar with Crystal Reports? If not, I would suggest reading a book.
It is possible with the below code sample:
C#
ReportDocument rptTest1 = new ReportDocument();
rptTest1.Load(System.Web.HttpContext.Current.Request.MapPath("App_Reports/rptpic1.rpt"));
rptTest1.Database.Tables["Images"].SetDataSource(rptTest.ImageTable(System.Web.HttpContext.
Current.Request.MapPath("App_Data/test1.bmp")));


Refer the article at: http://aspalliance.com/1097_Importing_Dynamic_Images_to_the_Crystal_Report_without_Database_Overhead_using_Visual_Studio_2005[^]
 
Share this answer
 
 
Share this answer
 
Yes you can show ,

1. take a datatable
2. read image by file handling
3. convert it in byte array
4. store this in datatable
4. bind with crystalreport (repotdocument object )
 
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