Click here to Skip to main content
15,038,451 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
HI al

Imm using rdlc report for one form in my project.

i need one help.

im showing image in mt taking it from mysql DB.i want one simple help.

im binding photo from DB.

if the image not coming in DB means i want to show image named "no image available".

"no image available" image in not stored or found in DB.we have to add that image in rdlc image folder and have to show that.please help me

1 solution

1. Use a Rectangle object and set the BackgroundImage to your "NO IMAGE AVAILABLE" image file.

2. Then place the Image control that is bound to the data source inside the rectangle and set an expression to the Visibility>Hidden property of the image to hide itself if it's missing in the data source

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900