Passing parameters in WCF

Hello.
I am wondering how it is possible to pass parameters to a report while consuming a WCF service running under FastReport.Service.dll.
The problem arises when I try to call the GetReport method. Here is the code I have put in the ASP.NET application that consumes the web service:

FastReportServiceClient reportServiceClient = new FastReportServiceClient();
reportServiceClient.Open();
ReportItem reportItem = new ReportItem();
reportItem.Path = @Demo reports\+nomeReport;

//Attempt of passing parameters through dictionary
Dictionary<string, string> dic = new Dictionary<string, string>();
dic.Add("CognomeReport", "Davolio");
reportItem.Parameters = dic;

GearItem gearItem = new GearItem();
gearItem.Name = "PDF";
Stream stream = reportServiceClient.GetReport(reportItem, gearItem);
reportServiceClient.Close();

I was not able to find a working code for passing parameters through WCF.
Could anyone suggest me a way to perform this action ?

Thank you in advance for any help.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.