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

PictureBox error in TRDX file

1 Answer 64 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 22 Mar 2013, 03:40 PM
An error has occurred while processing PictureBox 'pictureBox1':
Invalid image data.
------------- InnerException -------------
Access to the path {Path} is denied.

***************

I am passing a datafield with the path for the image.  Sometimes the image path will be blank.  I don't want the error to displayed in the browser.  

For TRDX file, is there anyway to suppress this error.

1 Answer, 1 is accepted

Sort by
0
IvanY
Telerik team
answered on 27 Mar 2013, 07:28 AM
Hello Peter,

Since you are already using an expression for the PictureBox you might as well check if its value is valid using IIf in the expression and perhaps even provide a default value for the image in such a case.

However the issue with your image seems to be the fact that your user does not have access to the image as the inner exception informs. In that case you will have to figure out which image is causing this and either move it or provide permissions.

Greetings,
IvanY
the Telerik team

Telerik Reporting Q1 2013 available for download with impressive new visualizations. Download today from your account.

Tags
Report Designer (standalone)
Asked by
Peter
Top achievements
Rank 1
Answers by
IvanY
Telerik team
Share this question
or