【发布时间】:2013-09-03 08:27:08
【问题描述】:
我对 Telerik Reporting 和 MVC 非常陌生。我正在使用 Telerik Reporting Q1 2013 和 MVC 4。我想将一些信息作为参数传递给报告。我尝试通过从报告后面的代码发送参数,但没有用。它显示所有记录。
我所做的是
public partial class ImmunizationRpt : Telerik.Reporting.Report
{
public ImmunizationRpt()
{
InitializeComponent();
Telerik.Reporting.ReportParameter param = new ReportParameter();
param.Name = "PatientKey";
param.Type = ReportParameterType.Integer;
param.AllowBlank = false;
param.AllowNull = false;
param.Value = 1;
param.Visible = true;
this.Report.ReportParameters.Add(param);
//this.Report.ReportParameters.Add("PatientKey",ReportParameterType.Integer,1);
}
}
【问题讨论】:
标签: asp.net-mvc-4 telerik-reporting