简体   繁体   English

报表查看器.rdlc如何传递参数?

[英]Report Viewer .rdlc How to pass a parameter?

So apparently I been doing a trial balance report in C# windows form - report viewer that shows a YEARLY report of "ACCOUNTS" and its total payable in each account. 因此,显然我一直在使用C#Windows窗体-报表查看器来显示试算表报表,该报表显示了“帐户”的年度报告及其在每个帐户中的应付总额。

The report has a supposed yearly compounding value depending from the user choice - ex. 该报告的假定年度复利价值取决于用户的选择- 例如。 Jan. 1 2013-to-Feb. 1 2014 Jan. 1 2013-to-Feb. 1 2014 , there will be a compounding value from Jan-Dec 2013, "TOTAL=4,500,000" and Jan-Feb 2014, "TOTAL=45,000 ". Jan. 1 2013-to-Feb. 1 2014 ,从Jan-Dec 2013, "TOTAL=4,500,000" and Jan-Feb 2014, "TOTAL=45,000的复利值为Jan-Dec 2013, "TOTAL=4,500,000" and Jan-Feb 2014, "TOTAL=45,000Jan. 1 2013-to-Feb. 1 2014的复利值为Jan-Dec 2013, "TOTAL=4,500,000" and Jan-Feb 2014, "TOTAL=45,000 ”。

What I have in the report is a continues compounding value, 我在报告中所拥有的是持续的复合价值,

Jan-Dec 2013, "TOTAL=4,500,000" and Jan-Feb 2014, "TOTAL=4,545,000". 2013年1月至12月,“ TOTAL = 4,500,000”和2014年1月2月2日,“ TOTAL = 4,545,000”。

My code in the cell is =RunningValue(Fields!DEBIT.Value,Sum,"summaryDataSet"). 我在单元格中的代码是=RunningValue(Fields!DEBIT.Value,Sum,"summaryDataSet").

I hope the reader would understand what I'm trying to say here and help me. 我希望读者能理解我在这里要说的话并为我提供帮助。 Thanks. 谢谢。

Though I don't know what kept you from using Google to find an answer to the question (by that I mean the question's header only!), you can use ReportParameter to pass parameters to your report: 尽管我不知道是什么原因使您无法使用Google查找问题的答案(因为这仅是问题的标题!),但是您可以使用ReportParameter将参数传递给报告:

ReportParameter[] parameters = new ReportParameter[x+1];
parameters[0] = new ReportParameter("name1", value1);
...
parameters[x] = new ReportParameter("namex", valuex);
this.reportViewer1.LocalReport.SetParameters(parameters);

I do not understand what you're trying to tell us by the question text, it does not seem to fit the question at all... 我不明白您要通过问题文字告诉我们什么,这似乎根本不适合这个问题...

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

相关问题 如何将参数和数据源同时传递到rdlc报告 - How to pass both parameter and datasource to rdlc report sametime 如何在RDLC中制作椭圆形框架(报表查看器) - How to make an oval frame in RDLC ( Report Viewer ) RDLC报告查看器未在报告查看器中显示数据吗? - RDLC report viewer not showing data in the report viewer? 如何在 winform c# 的 rdlc 报告查看器中显示印地语字符 - How to display Hindi Characters in rdlc report viewer in winform c# 如何在同一个报告查看器中加载两个 RDLC 报告? - How to load two RDLC reports in same report viewer? 如何使用 Microsoft Report Viewer (rdlc) 部署 VB.Net 项目 - How to deploy VB.Net project with Microsoft Report Viewer (rdlc) 在报表查看器(rdlc)中,如何通过表达式设置第一列的背景色 - In report viewer (rdlc) , how to set the background color of the first column by expression 如何将参数值从rdlc报告传递到Web表单项目中的方法? - how to pass a parameter value from rdlc report to a method in web forms project? 如何使用Visual Studio报表查看器将参数或值传递给报表服务报表 - How to pass a parameter or a value to reporting service report using visual studio report viewer Rdlc 报告查看器在 WPF 应用程序中不显示报告 - Rdlc report viewer in not shwoing report in a WPF applicaiton
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM