简体   繁体   English

如何在不使用数据集和数据源的情况下创建 Static SSRS 报告

[英]How to Create a Static SSRS Report without using a DataSet &DataSource

Tring to create a Static Report such that no DataSet/Datasource is used.尝试创建 Static 报告,以便不使用数据集/数据源。 Inserted a Table with static values but preview is giving me error:插入了一个带有 static 值的表,但预览给了我错误:

在此处输入图像描述

Any other Solution other than TextBox with Labels?除了带有标签的文本框之外还有其他解决方案吗? Also read solutions like give `dataset to use SELECT '',but for that also we need to specify DSN.另请阅读解决方案,例如给出“数据集以使用 SELECT”,但为此我们还需要指定 DSN。 Solution which Iam looking out for Static data with no DataSet/Datasource.Please Help!我正在寻找没有数据集/数据源的 Static 数据的解决方案。请帮助!

In short, you cannot use a tablix (table/matrix) without a dataset.简而言之,您不能在没有数据集的情况下使用 tablix(表/矩阵)。 However, you can create a dataset that uses a datasource that does not require any kind of external connection.但是,您可以创建使用不需要任何类型外部连接的数据源的数据集。

Create a new report.创建一个新报告。

Create a dataset and choose to use an embedded datasource.创建数据集并选择使用嵌入式数据源。

Create a new datasource and choose "enter data" as the type, click ok.创建一个新的数据源并选择“输入数据”作为类型,单击确定。

New click "query designer" and enter anything in the table presented.新建单击“查询设计器”并在显示的表中输入任何内容。

You can now point your tablix to this dataset but ignore it's contents completely.您现在可以将 tablix 指向此数据集,但完全忽略它的内容。

Alternatively, you could the query design to actually enter your data and then present it like anything else.或者,您可以通过查询设计实际输入您的数据,然后像其他任何东西一样呈现它。

Here's a short GIF to demo the process这是一个简短的 GIF 来演示这个过程

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM