Hello,
I need to open from a SL4 application a report passing 2 parameters (I open the report using the SL reportviewer inside a RadWindow), I load the report calling a method Load that's got the following code :
this works but due to transmission time it shows for some seconds a message "One or more parameters are not set or have invalid values." This it's due to the fact that when the radwindow load it calls the webservice...is there a way of changing the text or to hide it?
Thanks in advance
Paolo
I need to open from a SL4 application a report passing 2 parameters (I open the report using the SL reportviewer inside a RadWindow), I load the report calling a method Load that's got the following code :
private void Load(int u_rapporto, DateTime date)
{
if (u_rapporto != 0)
{
reportViewer.Height = double.NaN;
var reportViewerModel = reportViewer.DataContext as ReportViewerModel;
Telerik.Reporting.Service.Parameter paramRapporto = new Telerik.Reporting.Service.Parameter();
paramRapporto.Name = "Rapporto";
paramRapporto.Type = typeof(int).FullName;
paramRapporto.Value = u_rapporto;
Telerik.Reporting.Service.Parameter paramData = new Telerik.Reporting.Service.Parameter();
paramData.Name = "Data";
paramData.Type = typeof(DateTime).FullName;
paramData.Value = date;
List<
Telerik.Reporting.Service.Parameter
> lst = new List<
Telerik.Reporting.Service.Parameter
>();
lst.Add(paramRapporto);
lst.Add(paramData);
if (reportViewerModel.Parameters != null)
{
reportViewerModel.Parameters.Clear();
reportViewerModel.Parameters.Add(paramRapporto);
reportViewerModel.Parameters.Add(paramData);
reportViewerModel.ApplyReportParametersCommand.Execute(null);
}
else
{
reportViewerModel.Parameters = lst;
reportViewerModel.ApplyReportParametersCommand.Execute(null);
}
}
else
{
reportViewer.Height = 0;
}
}
this works but due to transmission time it shows for some seconds a message "One or more parameters are not set or have invalid values." This it's due to the fact that when the radwindow load it calls the webservice...is there a way of changing the text or to hide it?
Thanks in advance
Paolo