C1 Web API Report Services enables you to build HTTP services, which can be consumed by a variety of clients for viewing, loading and caching reports, including the Wijmo ReportViewer. These are REST-based API services, which communicated with HTML 5 ReportViewer control to display the report content on the web.
Available as Visual Studio template, C1 Web API enables you to create report services on Visual Studio. Client applications send a request to the report services application to load reports, export reports, and allow user to use parameters in the report. The service supports exporting your reports to PDF, Excel, HTML, RTF, OpenXML, and Image.
Set up report services for the report viewer
Create a report services application by C1 Web API Project Templates in Visual Studio:
- Installed ASP.NET Web API Edition from here.
- Select a C1 Web API Application template in Visual Studio New Project dialog:
- The project template wizard shows. Please check Report services and click OK:
- Add reports to this web application.
- FlexReport or C1Report:
- Copy the report definition file to the application. Please also copy the related database file and update the connect string of the report if necessary.
- Add a FlexReport disk storage in Configure method of Startup. For example:
app.UseReportProviders().AddFlexReportDiskStorage("Root", System.IO.Path.Combine(System.Web.HttpRuntime.AppDomainAppPath, "ReportsRoot"));
app.UseReportProviders().AddSsrsReportHost("ssrs", "http://ssrshost/ReportServer", new System.Net.NetworkCredential("username", "password"));
Wijmo's ReportViewer has been launched as a control, and is available with Wijmo Enterprise. You'll be able to view FlexReports in ReportViewer, and in order to generate a FlexReport—and connect the ReportViewer to the FlexReport— you'll need GrapeCity's Ultimate suite. Ultimate includes the code-free standalone report designer, FlexReport Designer, along with a Web API.