使用嵌入在 rdl 文件中的数据集的 ssrs 本地报告

ssrs local report using a dataset embedded in rdl file

我搜索了我的问题的答案,但没有找到。 我有带有嵌入式数据集的 .rdl 报告,我们称它为 DataSet1。 我想做的是使用具有连接信息和嵌入式存储过程的 DataSet1,而不是使用新的数据集,我们将其称为 DataSet2,我需要通过我的 mvc 项目提供它。它给了我 "ReportProcessingException: Cannot create a data reader for dataset 'DataSet1'"。类似的报告被设置为报告服务器并通过 aspx 页面调用进行预览并完美运行。我只想像为其他报告所做的那样提供我的报告参数。我不需要预览它只是为了 运行 它并保存它。有谁知道如何解决这个问题?任何想法将不胜感激。

我发现 here,这是不可能的。
"The Query element is optional in an RDLC file. This element is ignored by the ReportViewer control because the ReportViewer control does not perform any data processing in local processing mode, but uses data that the host application supplies."