Migrate to Report Viewer v2.0 component
This section provides simple step-by-step instructions to update your existing Report Viewer application to our latest modern v2.0 scripts, styles and components.
-
Open the
\Views\Shared\_Layout.cshtmlpage that contains Report Viewer and its scripts. -
Remove the following older scripts and CSS references in your
_Layout.cshtmlpage.bold.reports.all.min.cssej2-base.min.jsej2-data.min.jsej2-pdf-export.min.jsej2-svg-base.min.jsej2-lineargauge.min.jsej2-circulargauge.min.jsej2-maps.min.jsej.chart.min.jsbold.reports.common.min.jsbold.reports.widgets.min.jsbold.report-viewer.min.js
-
Add the following v2.0 scripts and CSS references in your
_Layout.cshtmlpage.
@Styles.Render("~/Content/bold-reports/v2.0/tailwind-light/bold.report-viewer.min.css")
@Scripts.Render("~/Scripts/bold-reports/v2.0/common/bold.reports.common.min.js")
@Scripts.Render("~/Scripts/bold-reports/v2.0/common/bold.reports.widgets.min.js")
@Scripts.Render("~/Scripts/bold-reports/v2.0/bold.report-viewer.min.js")
```