Hi Guys,
I have made those reports have been shown by using the Silverlight ReportViewer on client-side.
Furthermore,Those reports's parameters have been passed from the client-side silverlight to the server-side telerik reporting reports.
Those reports have worked fine when those reports's parameters have beed selected all in first time.
But,The report will occur blank data on the first page of the whole report when I have selected some parameter in second time.
Please see the code below
*.xaml
<telerik:ReportViewer x:Name="MyReportViewer" ReportServiceUri="../ReportService.svc"/>
*.xaml.cs
this.MyReportViewer.Report = null;
this.MyReportViewer.Report = "ReportLibrary.ReportTest,ReportLibrary";
this.MyReportViewer.RenderBegin += new RenderBeginEventHandler(ReportViewer_RenderBegin);
....
....// passed the report parameters
args.ParameterValues["Plant"] = plants;
args.ParameterValues["Areas"] = areas;
args.ParameterValues["Units"] = units;
args.ParameterValues["Items"] = items;
ReportTest.cs [Telerik.Reporting.Report]
private void ReportTest_ItemDataBinding(object sender, EventArgs e)
{
.....//got the report parameters
.....//generated and executed the mdx query , returned cellset
.....//Telerik Table Bind the cellset data
this.tblTest.DataSource = cubeTest;
//----------------------Fields Binding------------------------------------
this.txtFChgOn.Value = "=IsNull(FormatDate(Fields.Time),' ')";
this.txtFArea.Value = "=Fields.Area";
this.txtFUnit.Value = "=Fields.Unit";
this.txtFTagName.Value = "=Fields.TagName";
this.txtFTagDesc.Value = "=Fields.TagComment";
}
I think,Does the report has cached report data in first time?
How can I handle this situatio ?
In case of the cached data , How to solve it?
I am in urgent need of yours help.
Thanks.
I have made those reports have been shown by using the Silverlight ReportViewer on client-side.
Furthermore,Those reports's parameters have been passed from the client-side silverlight to the server-side telerik reporting reports.
Those reports have worked fine when those reports's parameters have beed selected all in first time.
But,The report will occur blank data on the first page of the whole report when I have selected some parameter in second time.
Please see the code below
*.xaml
<telerik:ReportViewer x:Name="MyReportViewer" ReportServiceUri="../ReportService.svc"/>
*.xaml.cs
this.MyReportViewer.Report = null;
this.MyReportViewer.Report = "ReportLibrary.ReportTest,ReportLibrary";
this.MyReportViewer.RenderBegin += new RenderBeginEventHandler(ReportViewer_RenderBegin);
....
....// passed the report parameters
args.ParameterValues["Plant"] = plants;
args.ParameterValues["Areas"] = areas;
args.ParameterValues["Units"] = units;
args.ParameterValues["Items"] = items;
ReportTest.cs [Telerik.Reporting.Report]
private void ReportTest_ItemDataBinding(object sender, EventArgs e)
{
.....//got the report parameters
.....//generated and executed the mdx query , returned cellset
.....//Telerik Table Bind the cellset data
this.tblTest.DataSource = cubeTest;
//----------------------Fields Binding------------------------------------
this.txtFChgOn.Value = "=IsNull(FormatDate(Fields.Time),' ')";
this.txtFArea.Value = "=Fields.Area";
this.txtFUnit.Value = "=Fields.Unit";
this.txtFTagName.Value = "=Fields.TagName";
this.txtFTagDesc.Value = "=Fields.TagComment";
}
I think,Does the report has cached report data in first time?
How can I handle this situatio ?
In case of the cached data , How to solve it?
I am in urgent need of yours help.
Thanks.