vb.net 将数据集 (.xsd) 分配给现有报告 (.rdlc)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21783178/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 16:46:04  来源:igfitidea点击:

Assign dataset (.xsd) to existing report (.rdlc)

vb.netvisual-studiovisual-studio-2012dataset

提问by MarcinWolny

How to I assign dataset to the existing report?

如何将数据集分配给现有报告?

I went a little bit other way around then you usually do it - first build RDLC and then got my dataset done, however now I'm clueless how to assign that dataset to my report. In properties window whatever I select Body, Report or Tablix - I can't find anything that would allow me to choose dataset.

我采取了一些其他方式,然后您通常会这样做 - 首先构建 RDLC,然后完成我的数据集,但是现在我不知道如何将该数据集分配给我的报告。在属性窗口中,无论我选择 Body、Report 还是 Tablix - 我都找不到任何可以让我选择数据集的东西。

There was this screen (wizard) with drop-down that allowed you to pick dataset, but in no way I can find it. Anyone can help how to trigger it again? Or help me to assign my dataset to report in any other way?

有这个带有下拉菜单的屏幕(向导)允许您选择数据集,但我无法找到它。任何人都可以帮助如何再次触发它?或者帮我分配我的数据集以任何其他方式报告?

回答by Steve

You need to open the Report Dataproperties Window.

您需要打开Report Data属性窗口。

With an RDLC report open press the Ctrl+Alt+Dor select the menu View then ReportData

打开 RDLC 报告后,按Ctrl+Alt+D或选择菜单查看然后ReportData

There you find the DataSet node where, a right click, opens the Add New Datasetwizard

在那里您可以找到 DataSet 节点,单击鼠标右键会打开Add New Dataset向导