0
我想將log ind person id作爲參數傳遞給telerik報告2013年第一季度,使用mvc 4 vs 2012.and我不想通過UI參數發送參數。 什麼我對ASPX視圖做的是如何將參數傳遞給telerik使用MVC 4與2012的報告
<script runat="server">
public override void VerifyRenderingInServerForm(Control control)
{
// to avoid the server form (<form runat="server"> requirement
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
var report = new ImmunizationRpt();
var instanceReportSource = new Telerik.Reporting.InstanceReportSource();
instanceReportSource.ReportDocument = report;
report.ReportParameters.Add("PatientKey",Telerik.Reporting.ReportParameterType.Integer, 1);
ReportViewer1.ReportSource = instanceReportSource;
ReportViewer1.RefreshReport();
}
</script>
但報告顯示所有record.it沒有得到過濾器記載。
任何一個知道什麼??? ?這很緊急。 – user632299