The C1.Web.Mvc.FlexViewer assembly contains ReportViewer control that allow you to show reports.
Steps for getting started with the ReportViewer control in MVC applications:
The C1 Web API Report Services uses C1FlexReport to render and export report. Please refer to How to Set Up C1 Web API Report Services for details.
To show the content of FlexReport from C1 Web API Report Services, set the following basic properties:
The 'ReportsRoot' is the key of the report provider which is registered at server for locating specified report.
The 'Formatting/AlternateBackground.flxr' is the relative path of the FlexReport definition file which can be located by the report provider.
The ReportViewer control can also show SSRS report.
The C1 Web API Report Services uses C1SSRSDocumentSource to connect with SSRS server and render the SSRS report. It first fetches data from SSRS server, and then converts to the expected formats (normally HTML5 SVG). Please see How to Set Up C1 Web API Report Services for details.
To show the content of SSRS report from C1 Web API Report Services, set the following basic properties:
The 'c1ssrs' is the key of the report provider which is registered at server for specified report.
(For 'https://demos.componentone.com/ASPNET/c1webapi/4.5.20201.244/api/report', the 'c1ssrs' is the key of the report provider which links to the SSRS server 'http://ssrs.componentone.com:8000/ReportServer'.)
The 'AdventureWorks/Company Sales' is the full path to the report which can be located in the SSRS server.
The ReportViewer control has the following four basic properties, which allow you to customize its appearance and behavior:
The example below allows you to see what happens when you change these properties.
ReportViewer renders the report if filePath and reportName properties are changed.