The ActiveReports 14 provides JSViewer MVC and JSViewer MVC Core templates in Visual Studio. Use the template to obtain a pre-configured application.
Note: JSViewer Core templates are available only in Visual Studio 2019. Visual Studio 2013, Visual Studio 2015, and Visual Studio 2017 do not support the JSViewer Core templates.
Prerequisites
The following steps describe how to use a JSViewer MVC template in Visual Studio 2019:
You can also download and install the JSViewer-related files and folders from NPM using the following command in the command line:
npm install @grapecity/ar-viewer
The viewer files/folders are downloaded in your current directory: .\node_modules\@grapecity\ar-viewer\dist
viewer.openReport("Reportname.rdlx");
Startup.cs |
Copy Code
|
---|---|
public class Startup { public static string EmbeddedReportsPrefix = "JSViewerMVCApplication2.Reports"; public void Configuration(IAppBuilder app) { app.UseErrorPage(); app.UseReporting(settings => { settings.UseEmbeddedTemplates(EmbeddedReportsPrefix, Assembly.GetAssembly(GetType())); settings.UseCompression = true; settings.UseFileStore(new System.IO.DirectoryInfo("path to the Reports folder")); }); RouteTable.Routes.RouteExistingFiles = true; } } |