Find the following steps to open server report on opening Report Designer.
Create a function and bind it with the create
API in Index.cshtml
file 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 openReport
method 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");
}