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

Handling PictureBox NO Image Data Exception

1 Answer 405 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
sandeep
Top achievements
Rank 1
sandeep asked on 08 Feb 2016, 04:18 AM

Hi, 

     We design reports using telerik standalone designer using sql data-sources. One our requirement is to generate Bio-data report for employees in the company, which displays their pictures in a picturebox. The Picturebox values (absolute URL) is set from field values.  The employees pictures are usually stored in a folder with their Id, so it is an assumption that their image file path is valid. However if the file path is invalid or image file is missing, the report shows an error like 'Invalid image data, could not find a part of the path'. i Would like to show blank picture box in case image is missing or folder is missing. How can i achieve this using report designer.

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 08 Feb 2016, 04:14 PM
Hello Sandeep,

You can validate the URL via a user function. In case the image is not present, you can return a default image from the user function. For more information, please refer to the User Functions help article.

Regards,
Nasko
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Report Designer (standalone)
Asked by
sandeep
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or