How to open a server report using a report path at the time of opening the Report Designer
To open a server report by its report path when the Bold Reports® JavaScript Report Designer opens, embed the Report Designer with Bold Reports® Report Server and call the openReport method in the index.html file. First, follow the steps in the following guide to embed the Report Designer with Report Server.
Embed Bold Reports® Report Server in the JavaScript Report Designer
Use the openReport method in the index.html file, as in the following code snippet, to open a report from the report server.
<div style="height: 720px; width: 1500px; min-height: 400px;" id="designer"></div>
<script>
$(function () {
$("#designer").boldReportDesigner(
{
serviceUrl: "https://service.boldreports.com/api/Designer",
reportServerUrl:"https://<your-report-server-domain>/reporting/api/"
serviceAuthorizationToken: "bearer <server-token>"
});
var designerObj = $('#designer').data('boldReportDesigner');
designerObj.openReport('/Sample Reports/Sales Report');
});
</script>