如何在RDLC报告中添加外部图像(C#) [英] How to add an external image in RDLC Report (C#)

查看:227
本文介绍了如何在RDLC报告中添加外部图像(C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将外部图像添加到rdlc。我做了一些事情,但无法看到图片。我创建了一个新参数。我叫它Image。然后我从工具箱中添加了一个图像,然后在弹出窗口中选择外部,然后单击fx。然后我进入了



=参数!Image.Value



然后在我的表格上我写道:

I want to add an external image to rdlc. I did something but picture couldn't be seen.I have created a new parameter. I called it Image. Then I have added an image from toolbox and choose external on popup then clicked fx. Then I entered

=Parameters!Image.Value

Then on my form I wrote:

reportViewer1.LocalReport.EnableExternalImages = true;
ReportParameter parameter = new ReportParameter("Image", "logo.bmp");
reportViewer1.LocalReport.SetParameters(parameter);
 
this.reportViewer1.RefreshReport();

推荐答案

检查出来: rdlc中的外部图像 [ ^ ]


这篇关于如何在RDLC报告中添加外部图像(C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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