Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to display Images at crystal reports at runtime. I have saved the path of Images in Database and set Graphic location of Picture from ImagePath Field from DB.
When I set Absolute path as
SQL
select 'E:\My Work\DotNetWork\FCAT_12_12_11_Live\FCAT\Images\' + [FileName] AS ImagePAth from TableName 
then it Work Fine and Display Images accordingly But When I use Relative as
SQL
select '~\Images\' + [FileName] AS ImagePAth from tableName 
Path It does not pull Images from that Path.
This is my web application I want to get Images from Images Folder that is at WebServer.
So I need relative Path.
Please Help.
Posted
Comments
Anuj Banka 14-Dec-11 7:07am    
Are you running application on your local and your images are on webserver ??
[no name] 14-Dec-11 23:12pm    
currently, I am running Application locally. I have displayed Image at Form by seting path of Asp:Image Controll of '~\Images\' + [FileName]. But this path does not work for Crystal report. I am displaying ReportViewer in POPUP. I want to display Images from Images folder in Application Code.
Is crystal report support relative Path or not?
Thanks

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