Handling PictureBox NO Image Data Exception

2 posts, 0 answers
  1. sandeep
    sandeep avatar
    2 posts
    Member since:
    Aug 2013

    Posted 07 Feb Link to this post


         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.

  2. Nasko
    Nasko avatar
    909 posts

    Posted 08 Feb Link to this post

    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.

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top