We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Starting in 2019, the Reporting control is no longer included in Essential Studio. If you're experiencing issues with the Syncfusion Reporting Platform, Report Viewer, Report Designer, or Report Writer, we recommend migrating to Bold Reports, our dedicated reporting platform.

Bold Reports offers a comprehensive suite of tools and features for all your reporting needs, and we will help you make a smooth transition from the discontinued control. Our support team at https://support.boldreports.com/ is here to assist you with any questions or difficulties you may encounter during the migration process.

We thank you for choosing Syncfusion and appreciate your understanding.

ReportViewer - supplying the Parameters, getting error

I'm using the Angular directive for the report viewer and all I need it to do is display a report with data I have already filtered. Our app has filters on top that sends a query to get the data from a service and then I want to render using the report viewer. Problem is that the report viewer shows a Parameters screen and a view report button on the side.

Can this be bypassed?

I tried to supply the parameters myself using the e-parameters attribute on the control and supplied all the values. Now the report doesn't render at, and at the second POST to the PostReportAction (supplying the data, and in this case the parameters as well), I get this response:

"Sf_Exception - System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.\r\n   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)\r\n   at Syncfusion.EJ.ReportViewer.ReportViewerModel.UpdateJsonReportModel(ReportModel reportmodel, Dictionary`2 json)\r\n   at Syncfusion.EJ.ReportViewer.ReportHelper.GetDataSourceCredential(Dictionary`2 jsonResult, IReportController _reportController)\r\n   at Syncfusion.EJ.ReportViewer.ReportHelper.ProcessReport(Dictionary`2 jsonResult, IReportController reportController)"

Can anyone please help?

Thanks

1 Reply

AS Anandakumar S Syncfusion Team July 18, 2015 04:46 PM UTC

Hi Vic,

Thanks for using Syncfusion Products.

Problem is that the report viewer shows a Parameters screen and a view report button on the side.
Can this be bypassed?
You can hide the Parameter block using the ToolbarSettings property in ReportViewer as shown in the below code snippet.

toolbarSettings: { items: ej.ReportViewer.ToolbarItems.All & ~ej.ReportViewer.ToolbarItems.Parameters }


Kindly refer our online documentation for more details on this.
http://helpjs.syncfusion.com/js/reportviewer/toolbar-customization
"Sf_Exception - System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.\r\n   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)\r\n   at
The error occurred while processing the report datasource credentials. We request you to ensure the credential supplied to datasource or if its RDLC report then kindly set processing mode to Local (ProcessingMode.Local)  and add datasource collection to ReportViewer. Kindly refer our online UG documentation for setting the datasource properties.
http://helpjs.syncfusion.com/js/reportviewer/report-datasources

Please let us know if you have any questions.

Regards,
Anandakumar S

Loader.
Live Chat Icon For mobile
Up arrow icon