Migrate to Report Designer v2.0 component
To migrate the Bold Reports® JavaScript Report Designer to the v2.0 component, remove the old CSS and script references from the HTML page and add the v2.0 references. The v2.0 component gives the Report Designer a modern look and feel.
Use these steps to migrate the Bold Reports® Report Designer version lesser than
v5.2.xxtov5.2.xxand above.
-
Open the HTML page that contains the Report Designer and its scripts.
-
Remove the following older CSS references from the page.
bold.reports.all.min.cssbold.reportdesigner.min.css
-
Remove the following older script references from the page.
jsrender.min.jsej2-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-designer-widgets.min.jsbold.report-viewer.min.jsbold.report-designer.min.js
-
Add the following v2.0 CSS and script references in the <head> tag of the HTML page.
<!-- Report Designer component styles --> <link href="https://cdn.boldreports.com/15.1.10/content/v2.0/tailwind-light/bold.report-designer.min.css" rel="stylesheet" /> <!-- Report Designer component dependent scripts --> <script src="https://cdn.boldreports.com/15.1.10/scripts/v2.0/common/bold.reports.common.min.js"></script> <script src="https://cdn.boldreports.com/15.1.10/scripts/v2.0/common/bold.reports.widgets.min.js"></script> <!-- Report Viewer and Designer component scripts --> <script src="https://cdn.boldreports.com/15.1.10/scripts/v2.0/bold.report-viewer.min.js"></script> <script src="https://cdn.boldreports.com/15.1.10/scripts/v2.0/bold.report-designer.min.js"></script>
The final HTML page for the v2.0 Report Designer looks like the following code:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="https://cdn.boldreports.com/15.1.10/content/v2.0/tailwind-light/bold.report-designer.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/codemirror.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/addon/hint/show-hint.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/codemirror.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/addon/hint/show-hint.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/addon/hint/sql-hint.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/mode/sql/sql.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/mode/vb/vb.min.js" type="text/javascript"></script>
<!-- Report Designer component dependent scripts -->
<script src="https://cdn.boldreports.com/15.1.10/scripts/v2.0/common/bold.reports.common.min.js"></script>
<script src="https://cdn.boldreports.com/15.1.10/scripts/v2.0/common/bold.reports.widgets.min.js"></script>
<!-- Report Viewer and Designer component scripts -->
<script src="https://cdn.boldreports.com/15.1.10/scripts/v2.0/bold.report-viewer.min.js"></script>
<script src="https://cdn.boldreports.com/15.1.10/scripts/v2.0/bold.report-designer.min.js"></script>
</head>
<body>
<script type="text/javascript">
$(function () {
$("#designer").boldReportDesigner();
});
</script>
</body>
</html>