ReportViewer表格控件 [英] ReportViewer Table Control

查看:91
本文介绍了ReportViewer表格控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在ReportViewer上显示空白表。 此报告将被打印,表格将手工填写。 除非我为表添加数据集,否则会出现编译错误。 我得到一个内部异常
的运行时异常,其消息是"DataSet1"。当我添加一个。 有什么想法?

I'm trying to display a blank table on a ReportViewer.  This report is to be printed and the table is to be filled out by hand.  I get a compile error unless I add a dataset for the table.  I get a runtime exception with an inner exception whose message is "DataSet1" when I do add one.  Any thoughts?

谢谢

推荐答案

是的,表格应绑定到数据集。

Yes, tables should be binded to datasets.

为什么不绑定到空数据集。就像你创建一个数据集结构,然后用10个空记录填充你的数据表 - 这将根据你的需要呈现报告。

Why not you binded to an empty dataset. Like you create a dataset structure and then just fill your datatable with like 10 empty records - this will render the report as you needed.


这篇关于ReportViewer表格控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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