如何根据rdlc报表中的表达式显示和隐藏图像 [英] how to show and hide the image based on expression in rdlc report

查看:764
本文介绍了如何根据rdlc报表中的表达式显示和隐藏图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI al



Imm在我的项目中使用rdlc报告表格。



i需要一个帮助。



我在mt report.im中显示图像从mysql DB.i获取它需要一个简单的帮助。


来自DB的
im绑定照片。



如果图像没有进入DB意味着我想要显示名为没有图像的图像。



无图像可用图像未存储或在DB中找到。我们必须在rdlc图像文件夹中添加该图像并且必须显示该。请帮助我

HI al

Imm using rdlc report for one form in my project.

i need one help.

im showing image in mt report.im 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。使用Rectangle对象并将BackgroundImage设置为NO IMAGE AVAILABLE图像文件。



2.然后放置绑定到数据源的Image控件矩形内部并将表达式设置为图像的可见性>隐藏属性,以便在数据源中缺少时隐藏自身
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


这篇关于如何根据rdlc报表中的表达式显示和隐藏图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆