如何在Microsoft报告中传递图像 [英] How to Pass Image in Microsoft Report

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

问题描述

您好专家,

如何将图片从Picture Box传递到Microsoft Report.


谢谢

Hello Experts,

How can i pass Image from Picture Box to Microsoft Report.


Thanks

推荐答案

首先,您应该将图片另存为图片框"中的图片.
然后,您可以将现有的图像文件路径作为字符串传递,

First you should save as picture in your Image from Picture Box.
And then you can pass your existing image file path as string ,

 string imagepath = "file:///" + "C:\\image.jpg";
             this.reportViewer1.LocalReport.EnableExternalImages = true;
             ReportParameter[] param = new ReportParameter[1];
param[0] = new ReportParameter("Path", imagepath);
this.reportViewer1.LocalReport.SetParameters(param);
this.reportViewer1.RefreshReport();



在rdlc文件中,创建图像"框,然后添加报表"参数(路径).

添加参数后,您可以从parmae​​ter(Path)中插入图像值.


可能会有所帮助,

Theingi Win



In rdlc file you create Image box and then add Report parameter (Path).

After you add parameter you can insert in image value from parmaeter(Path).


May be helpful,

Theingi Win


这篇关于如何在Microsoft报告中传递图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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