You can configure the ActiveReports service locally in an ASP.NET MVC application to view ActiveReports in FlexViewer. To view ActiveReports in the FlexViewer control using the ActiveReports Web Service, follow the steps given below.
Note: Make sure that the latest version of ActiveReports is installed on your system, before implementing the steps mentioned below.
C1.Web.Mvc.FlexViewer.dll
reference and the following markup in <namespace></namespace> tags below C1.Web.Mvc
markup.
<add namespace="C1.Web.Mvc.Viewer" />
<add namespace="C1.Web.Mvc.Viewer.Fluent" />
C# |
コードのコピー
|
---|---|
routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.IgnoreRoute("{*allActiveReport}", new { allActiveReport = @".*\.ar12(/.*)?" }); |
C# |
コードのコピー
|
---|---|
<ActiveReports13> <WebService reportsFolder="~/Reports" assemblyFolder="~/" /> </ActiveReports13> |
Index.cshtml |
コードのコピー
|
---|---|
@(Html.C1().ReportViewer() .ServiceUrl(@"~/ActiveReports.ReportService.asmx") .FilePath("BillingInvoice.rdlx")) |