如何通过文本框/组合框的值到RDLC报告的文本字段? [英] How to pass textbox/Combobox value to rdlc report text field?

查看:418
本文介绍了如何通过文本框/组合框的值到RDLC报告的文本字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C#和MySQL在我的项目。

c#, mysql in my project.

在我创建了一个RDLC报告。我不知道通过WinForm的文本框的值到RDLC报告文本字段。

In that i create a rdlc report. I dont know to pass winform textbox value to rdlc report text field.

我一派,并尝试一些设置的代码。但不能得到。

I googled and try some set of code. but cant get that.

如果您在报告工​​作。请帮助我。

If you worked in report. please help me.

我的要求是,..

我做的学院项目。在他们问bonafide证书。所以,我创建一个WinForm随着reportviwer,命名,当然,年份,学期,学年,目的textboxs和一个按钮。单击该按钮时,文本框填充。这些文本值要传递的记录文本框。

I am doing college project. In that they asked bonafide certificate. So i create a winform With reportviwer, name, course, year, semester, academic year, purpose textboxs and one button. Click the button when the textboxes are filled. those text values want to pass the record textboxes.

是否可以任何方式。

我的报告...

推荐答案

一个办法是设置为每个要引进和设置,无论你在C#想要的参数值的字段的参数应用程序。在报告中,你会再设置每个文本框的值设置为参数,它应该工作得很好。

One way would be to setup a parameter for each of the fields you want to bring in and set the value of the parameter to whatever you want in your C# app. In the report you would then set the value of each text box to be the parameter and it should work just fine.

或者,如果你正在使用RDLC文件(你是),你可以把你的数据转换成一个数据集,并传递到报告,然后让每个字段在报告中的列数据集

Or if you are using RDLC files (which you are) you could put your data into a dataset and pass that to the report and then have each field in the report a column in the dataset

这篇关于如何通过文本框/组合框的值到RDLC报告的文本字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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