DataSet和DataTable在运行时进行报告 [英] DataSet and DataTable in running time for reporting

查看:57
本文介绍了DataSet和DataTable在运行时进行报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个名为RepF的Windows窗体,其中包含一个名为reportViewer1的Microsoft报表查看器.

在此reportViewer1加载事件中,我将创建5个DataTables并通过MySqlDataAdapters填充它们.

我需要在Report1.rdlc中使用这些DataTables中包含的数据,以便进行打印.

我想知道的是,如何在仍然在reportViewer1 Load事件方法中填充DataTables之后直接在运行时创建数据集并将其添加到数据表中?

之后,我认为我可以将DataSet添加为我的Report1.rdlc的数据源,并将DataTables字段拖放到Report1.rdlc文本框和表格中.

提前致谢! :)

Hi all,

I have a windows Form named RepF which contains a Microsoft Report Viewer named reportViewer1.

In this reportViewer1 Load event, I am creating 5 DataTables and populating them through MySqlDataAdapters.

I need to use the data contained in these DataTables in a Report1.rdlc, for them to be printed.

What I want to know is, how can I create a DataSet and add my DataTables into it on running time, straight after I populate my DataTables still in the reportViewer1 Load event method?

After this I think I''ll be able to add this DataSet as a data source of my Report1.rdlc and drag and drop the DataTables fields into the Report1.rdlc text boxes and tables.

Thanks in advance! :)

推荐答案

自从我做完客户报告的一切工作已经很久了,但是我确实记得我从这里学到了很多东西:

[ http://www.gotreportviewer.com/]
It''s been ages since I''ve done anything with client reporting, but I do recall I learnt pretty much everything I once knew from here:

[http://www.gotreportviewer.com/]


这篇关于DataSet和DataTable在运行时进行报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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