This is a migrated thread and some comments may be shown as answers.

picturebox and relative path ?

0 Answers 247 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Khanh Nguyen
Top achievements
Rank 1
Khanh Nguyen asked on 14 Apr 2010, 04:58 PM
For the picturebox,
if the value is a relative path, ie, 

picturebox1.value = "./resources/logo.gif"

where is it relative to?

When in VS , it has me going to my root drive, c:\resources one day, and another day, it wanted to look at the
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Resources folder.


when I deploy w/ my website, where does it look?
is it relative to the dll? or relative to the Reportviewer file or ?

When i run the report in my VS Project, website (http://localhost:2501/dev/reports/viewer.aspx) , i would get the following

An error has occured while processing PictureBox 'clientLogo':
Failed to map the path '/Resources/ClientLogo.gif'.




so where is it looking for the /Resources folder?
I have a folder in the webproject  /Resources/






No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Khanh Nguyen
Top achievements
Rank 1
Share this question
or