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

PictureBox Value

1 Answer 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
WCRA Dev
Top achievements
Rank 1
WCRA Dev asked on 27 Jul 2010, 04:57 PM
I've added a pictureBox to the header of my report and now I want to add a picture that is in my images folder of my website.  So for the Value field I entered "./images/letterhead.jpg" but I get the error below (I've tried variations like "/images/letterhead.jpg" and ".\images\letterhead.jpg", none of them work).  It seems like no matter what I type in for the value field it looks on the local C: drive.

An error has occured while processing PictureBox 'pictureBox1':
Could not find a part of the path 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\images\letterhead.jpg'.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 28 Jul 2010, 01:18 PM
Hi Christian,

Our guess is that you receive this error while previewing the report in Visual Studio and not in actual runtime when the application root would be the root of the web site and not the Visual Studio directory.
The above is due to the fact that when previewing a report in the Report Designer, the reporting engine is hosted inside the VS application (devenv.exe) and the dependencies and paths are resolved according to it.

In order to address this peculiarity, we usually suggest to preview the reports in another application (be it a Windows Forms or Web) outside Visual Studio to ensure that all dependencies are resolved appropriately.

All the best,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
WCRA Dev
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or