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

Picturebox Default Image

1 Answer 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Atlas
Top achievements
Rank 1
Atlas asked on 21 May 2013, 09:16 PM
Hello,

I'm currently binding a picturebox to a database field in my report. If null is returned from the database, I would like to display a default "photo not available" picture. I tried to accomplish this by setting the picturebox value to the desired default image, and setting the picturebox binding to the database field - that didn't work. I also tried to do some conditional formatting based on if the Fields.Picture was null, and set the background to the default image - that didn't work.

Any ideas? 

1 Answer, 1 is accepted

Sort by
0
Squall
Top achievements
Rank 1
answered on 22 May 2013, 09:01 AM
Hi,
I have used =IsNull(Fields.Image, Fields.DefualtImage) expression on my end it handle nulls correctly.
SN
Tags
General Discussions
Asked by
Atlas
Top achievements
Rank 1
Answers by
Squall
Top achievements
Rank 1
Share this question
or