Parameters list is not showing up in WCF Service. Why ?
Hello,
I am experiencing a problem with a WCF Web Service running with FastReport.Service.dll.
I have got an ASP.NET website retrieving the list of reports in a folder from the Web Service; everything works fine and I can indeed populate a dataset with the reports names.
Fact is: the name of the report is the only information available; the parameters that I added to my frx reports are not present in the Parameters collection of the ReportItem object.
Here is my code:
FastReportServiceClient reportServiceClient = new FastReportServiceClient();
reportServiceClient.Open();
ReportItem[] reports = reportServiceClient.GetReportsList();
foreach (ReportItem item in reports)
{
Dictionary<string, string> dic = new Dictionary<string, string>();
dic = item.Parameters;
ds.Tables["Reports"].Rows.Add(
item.Name,
dic.Count.ToString()
);
}
items.Name contains the name of the current report
dic.Count should contain the number of my parameters (there are two of them in the frxs) but it doesn't.
Could anyone suggest a solution for this issue ?
Thank you in advance for your help.
Newcomsas
I am experiencing a problem with a WCF Web Service running with FastReport.Service.dll.
I have got an ASP.NET website retrieving the list of reports in a folder from the Web Service; everything works fine and I can indeed populate a dataset with the reports names.
Fact is: the name of the report is the only information available; the parameters that I added to my frx reports are not present in the Parameters collection of the ReportItem object.
Here is my code:
FastReportServiceClient reportServiceClient = new FastReportServiceClient();
reportServiceClient.Open();
ReportItem[] reports = reportServiceClient.GetReportsList();
foreach (ReportItem item in reports)
{
Dictionary<string, string> dic = new Dictionary<string, string>();
dic = item.Parameters;
ds.Tables["Reports"].Rows.Add(
item.Name,
dic.Count.ToString()
);
}
items.Name contains the name of the current report
dic.Count should contain the number of my parameters (there are two of them in the frxs) but it doesn't.
Could anyone suggest a solution for this issue ?
Thank you in advance for your help.
Newcomsas
Comments
Anybody has this problem solved?
I have WCF web Service, and WPF application, i can run the report with no problems between the enviroments, but i cannot get the passing parameters working.
Both :
report.SetParameterValue("GroupId", "XXXX") <- does nothing.
and reportItem.Parameters; is empty.
In report i have parameter in query and report paramerter.
Does anybody has this running ?