|
$("#container").ejReportViewer(
{
reportServiceUrl: "/api/ReportApi",
reportPath: '~/App_Data/GroupingAggregate.rdlc',
processingMode: ej.ReportViewer.ProcessingMode.Local,
dataSources:[{
value: data,
name: "Sales"
}]
}); |
|
why do we need an APIController for the report?
Can we do without the APIController, and use an mvc controller instead?
|
In MVC Controller, it will support to bind known type in action argument and did not get unknown type in dictionary jsonResult which we are using in our reportviewer controller.
So we are using the ApiController in ReportService controller for processing JSON object as shown in below snap.
|