Destroy the client and server side report viewer processing objects.
Example
<div id="report-viewer"></div>
<script>
var reportviewerObj = $("#report-viewer").data("boldReportViewer");
reportviewerObj.destroy(); //Destroy the report viewer processing objects.
</script>
Export the report to the specified format.
Parameter | Type | Description |
---|---|---|
show | string | Indicates to choose the export type while exporting like PDF or Excel or Word and etc... |
Example
<div id="reportviewer">ReportViewer</div>
<script>
var reportviewerObj = $("#reportviewer").data("boldReportViewer");
reportviewerObj.exportReport("PDF"); //Exports the report into PDF format.
</script>
Fit the report page to the container.
Example
<div id="reportviewer">ReportViewer</div>
<script>
var reportviewerObj = $("#reportviewer").data("boldReportViewer");
reportviewerObj.fitToPage(); // To fit the report page.
</script>
Fit the report page height to the container.
Example
<div id="reportviewer">ReportViewer</div>
<script>
var reportviewerObj = $("#reportviewer").data("boldReportViewer");
reportviewerObj.fitToPageHeight(); // To fit the report page height.
</script>
Fit the report page width to the container.
Example
<div id="reportviewer">ReportViewer</div>
<script>
var reportviewerObj = $("#reportviewer").data("boldReportViewer");
reportviewerObj.fitToPageWidth(); // To fit the report page width.
</script>
Get the available datasets name of the rdlc report.
Example
<div id="reportviewer">ReportViewer</div>
<script>
var reportviewerObj = $("#reportviewer").data("boldReportViewer");
reportviewerObj.getDataSetNames(); // To get the dataset names.
</script>
Get the available parameters of the report.
Example
<div id="reportviewer">ReportViewer</div>
<script>
var reportviewerObj = $("#reportviewer").data("boldReportViewer");
reportviewerObj.getParameters(); // To get the parameters.
</script>
Navigate to first page of report.
Example
<div id="reportviewer">ReportViewer</div>
<script>
var reportviewerObj = $("#reportviewer").data("boldReportViewer");
reportviewerObj.gotoFirstPage(); // To navigate to first page
</script>
Navigate to last page of the report.
Example
<div id="reportviewer">ReportViewer</div>
<script>
var reportviewerObj = $("#reportviewer").data("boldReportViewer");
reportviewerObj.gotoLastPage(); // Navigate to the last page
</script>
Navigate to next page from the current page.
Example
<div id="reportviewer">ReportViewer</div>
<script>
var reportviewerObj = $("#reportviewer").data("boldReportViewer");
reportviewerObj.gotoNextPage(); //To navigate to the next page
</script>
Go to specific page index of the report.
Parameter | Type | Description |
---|---|---|
show | number | Indicates to pass the page number to show the page directly instead of starting from first page. |
Example
<div id="reportviewer">ReportViewer</div>
<script>
var reportviewerObj = $("#reportviewer").data("boldReportViewer");
reportviewerObj.gotoPageIndex(5); // To navigate the specific page
</script>
Navigate to previous page from the current page.
Example
<div id="reportviewer">ReportViewer</div>
<script>
var reportviewerObj = $("#reportviewer").data("boldReportViewer");
reportviewerObj.gotoPreviousPage(); // To navigate to the previous page
</script>
Print the report.
Example
<div id="reportviewer">ReportViewer</div>
<script>
var reportviewerObj = $("#reportviewer").data("boldReportViewer");
reportviewerObj.print(); //To perform print operation.
</script>
Apply print layout to the report.
Example
<div id="reportviewer">ReportViewer</div>
<script>
var reportviewerObj = $("#reportviewer").data("boldReportViewer");
reportviewerObj.printLayout(); //Changes between print layout and normal modes.
</script>
Refresh the report.
Example
<div id="reportviewer">ReportViewer</div>
<script>
var reportviewerObj = $("#reportviewer").data("boldReportViewer");
reportviewerObj.refresh(); // To refresh the report.
</script>
Specify the visibility of parameter block.
Parameter | Type | Description |
---|---|---|
show | boolean | Indicates whether the parameter block needs to be shown or not. true if you have to show the parameter block; otherwise, false. |
Example
<div id="report-viewer"></div>
<script>
var reportviewerObj = $("#reportviewer").data("boldReportViewer");
reportviewerObj.setParameterBlockVisibility(true);
</script>
Cancel the report processing.
Example
<div id="reportviewer">ReportViewer</div>
<script>
var reportviewerObj = $("#reportviewer").data("boldReportViewer");
reportviewerObj.cancelRendering(); // To cancel the report processing.
</script>