在 rdlc 报告中创建没有数据集的表. [英] Create table without dataset in a rdlc report.

查看:69
本文介绍了在 rdlc 报告中创建没有数据集的表.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 VS2010 中开发一个 rdlc 报告,我需要在报告中添加一个表,但是这个表有固定的文本,不需要数据源.但是报告给出了错误,因为该表与数据源无关.所以我的问题是如何在不需要数据源的 rdlc 中创建表?

I'm developing a rdlc report in VS2010 and I need to add a table in the report, but this table has fixed text and doesn't need a datasource. But the report is giving an error because the table isn't related to a datasource. So my question is How do I create table in an rdlc that doesn't need a datsource?

谢谢

推荐答案

根据定义,表需要关联的 DataSet.

By definition a table needs an associated DataSet.

如果报表中只有一个数据集,它可以默认使用它,否则需要指定一个.

If you only have one DataSet in a report it can use that by default, otherwise one will need to be specified.

如果您不想将表格与数据集相关联,您可以使用一个或多个放置在一起的独立文本框来获得相同的结果.

If you don't want to associate the table with a DataSet, you could use one or more independent textboxes placed together to get the same results.

您可以将这些文本框嵌入到一个矩形中,以便在呈现报表时将它们保持在一起.

You can embed these textboxes in a Rectangle to keep them together when rendering the report.

这篇关于在 rdlc 报告中创建没有数据集的表.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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