在RDLC报告图像中显示备用文本 [英] Display alternate Text in RDLC report image

查看:83
本文介绍了在RDLC报告图像中显示备用文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设计了一个RDLC报告,因为我使用了rdlc图像控件,将外部图像源绑定到该图像。如果特定路径上的imags不可用,那么我想显示替换文本..'图像不可用'。我检查了所有属性,但没有找到替代图像的属性。

I have designed a RDLC report, in that i used a rdlc image control, bind the external image source to that image. If the imags is not available on the particular path then i want to display the alternate text..'Image not available'. I checked all the properties but not found the property for alternate image.

推荐答案

您可以检查服务器端的路径,在报告中的参数中发送结果您可以根据表达式设置属性可见性,表达式将类似于= IIf(参数!Exist.Value,true,false)
You can check the path in server side, send the result in a parameter, in the report you can set the property "Visibility" based on an expression, the expression will be something like "=IIf(Parameters!Exist.Value,true,false)"


我不是专家在RDLC中(实际上在所有内容上),但请查看此答案。

如何根据rdlc报告中的表达式显示和隐藏图像 [ ^ ]
I'm not expert in RDLC(actually on everything), but check this answer.
how to show and hide the image based on expression in rdlc report[^]


这篇关于在RDLC报告图像中显示备用文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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