如何将文本框/组合框值传递给 rdlc 报告文本字段? [英] How to pass textbox/Combobox value to rdlc report text field?

查看:20
本文介绍了如何将文本框/组合框值传递给 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.

我的要求是...

我正在做大学项目.在那他们要求真正的证书.所以我创建了一个带有reportviwer、名称、课程、年份、学期、学年、目的文本框和一个按钮的winform.当文本框填满时单击按钮.这些文本值想要传递记录文本框.

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天全站免登陆