如何在rdlc报表查看器中动态设置图像. [英] how to set images dynamically in rdlc Report Viewer.

查看:124
本文介绍了如何在rdlc报表查看器中动态设置图像.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何使用数据源作为数据库在rdlc Report Viewer中动态设置图像.
并且可以添加为报告参数.那么我必须设置什么MIME类型?

问候,
ParvathySunu

Hi,

how to set images dynamically in rdlc Report Viewer with datasourse as database.
And is it possible to add as a report parameter.Then what is the MIME Type i have to set?

Regards,
ParvathySunu

推荐答案

最后,我得到了答案.
创建了一个属性,该属性返回ex的字节数组:
Finally I got the answer.
Created a property that return byte array for ex:
public byte[] setImage()
{
get;set;
}


然后将图像值"和"MIME类型"设置为Fields!setImages.Value
并将数据源设置为数据库.
它的工作原理...........


Then set the Image Value and MIME TYPE as Fields!setImages.Value
And set the datasource as Database.
Its working...........


使我陷入困境.错误-找不到请求的值"= Fields!setImage.Value".

如何在后台代码中设置图像?
im getting the foll. error - Requested value ''=Fields!setImage.Value'' not found.

how to set te image in code-behind?


即时获取图片.错误-找不到请求的值"= Fields!setImage.Value".

报表将如何访问该属性?
im getting the foll. error - Requested value ''=Fields!setImage.Value'' not found.

how will the report access the property?


这篇关于如何在rdlc报表查看器中动态设置图像.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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