MicroSoft报告查看器。 [英] MicroSoft Report Viewer.

查看:89
本文介绍了MicroSoft报告查看器。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在报告查看器中放置了一个空位的图像



我做了所有的事情,比如加入数据源和等等

和我的朋友



如何使用我的数据集中的项目放置在我的图像中

? ??

例如,在我的表单中填写文本框,报表查看器将此数据放在我的图像上。



非常感谢

i placed a image with empty places in my report viewer

and i did all of thing such as join to data source and etc
and my friend

how work with item in my data set to place in my image
???
for example, when in my form, fill text box, report viewer put this data on my image.

thanks alot

推荐答案

将参数从表单传递到报告:(vs2010)

1.add textbox to report1.rdlc(报告名称为例)

2.go到数据报告(ctrl + alt + d)右键单击参数n添加新的

3.IN常规选项卡:名称:类别(如你所愿)& ;设置数据类型:文本(作为表格数据)

然后按确定。

4.使用此代码表格形式;

pass parameter from form to report:(vs2010)
1.add textbox to report1.rdlc(report name as example)
2.go to data report(ctrl+alt+d) right-click on parameter n add new
3.IN general tab: name:category(as u wish) & set datatype:text(As par ur form data)
and press ok.
4. use this code to ur form;
Dim cat As New ReportParameter("category", ComboBox1.Text)
ReportViewer1.LocalReport.SetParameters(New ReportParameter() {cat})



将类别名称更改为ur参数名称。

替换combobox1。文本以ur形式使用你的组件。


change category name to ur parameter name.
replace combobox1.text to as per ur component use in ur form.


这篇关于MicroSoft报告查看器。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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