开发者

How to get parameters and theirs values from ParametersPanel in PerpetuumSoft.ReportViewer?

I use PerpetuumSoft.ReportViewer for SSRS 2008.

I need to list of parameters and theirs values that user set in ParametersPanel.

I watch ReportViewer.Parameter but it just get me parameters that I add handy to it i开发者_开发技巧n code but I need to parameters that set by user in ParametersPanel.

Any idea about this?


You may find more information here: How to check the parameters values input by the user in the parameters toolbar


The report viewer have an event that fire when set parameter button clicked. In handler of this event we can get all parameters and their values and store in a collection to use every where that we need.

<rpt:ReportViewer x:Name="reportViewer" 
     ParametersProcessing="reportViewer_ParametersProcessing"/>

public List<ReportParameterValue> ReportParameterValues { get; set; }
private void reportViewer_ParametersProcessing(object sender, ParametersProcessingEventArgs e)
{
    ReportParameterValues = e.Collection;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜