How to open the RDL file at the time of opening the Report Designer
Find the following steps to open server report on opening Report Designer.
-
Create a function and bind it with the
createAPI inIndex.cshtmlfile as like in below code snippet.<div style="height:500px"> @(Html.Bold().ReportDesigner("designer") .Create("controlInitialized") ) </div> <script type="text/javascript"> function controlInitialized(args) { ... } </script> -
Use the
openReportmethod in the function along with report path that was previously created, as like in below code snippet.function controlInitialized(args) { var designer = $('#designer').data('boldReportDesigner'); designer.openReport("/Sample Reports/Sales Report"); }