简体   繁体   English

借助用于SQL Server Reporting Services的ReportViewer控件,我可以在C#中以编程方式更改子报表吗?

[英]With the ReportViewer Control for SQL Server Reporting Services, can I change the subreport programatically in C#?

Currently we have a report with multiple sub-reports that could be used. 当前,我们有一个可以使用多个子报告的报告。 Up until now we've been changing the subreports manually every time we want to print something different. 到目前为止,每次我们想打印不同的内容时,我们都一直在手动更改子报表。 However I'm trying to build a C# Winforms app with the ReportViewer control that could change the subreports out dynamically. 但是,我正在尝试使用ReportViewer控件构建一个C#Winforms应用程序,该应用程序可以动态更改子报表。 Is this possible in any way? 这有可能吗? This is for SQL Server Reporting Services 2008 and the .NET 3.5 Framework if this helps any. 如果有帮助,则适用于SQL Server Reporting Services 2008和.NET 3.5 Framework。

有一个教程在这里 (http://www.gotreportviewer.com/subreports/index.html)给出一试。

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

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