Search results
Suggest a FeaturePDF

Methods

destroy()

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>

exportReport()

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>

fitToPage()

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>

fitToPageHeight()

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>

fitToPageWidth()

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>

getDataSetNames()

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>

getParameters()

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>

gotoFirstPage()

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>

gotoLastPage()

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>

gotoNextPage()

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>

gotoPageIndex()

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>

gotoPreviousPage()

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()

Print the report.

Example

<div id="reportviewer">ReportViewer</div>
<script>
    var reportviewerObj = $("#reportviewer").data("boldReportViewer");
    reportviewerObj.print(); //To perform print operation.
</script>

printLayout()

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()

Refresh the report.

Example

<div id="reportviewer">ReportViewer</div>
<script>
    var reportviewerObj = $("#reportviewer").data("boldReportViewer");
    reportviewerObj.refresh(); // To refresh the report.
</script>

setParameterBlockVisibility()

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>

cancelRendering()

Cancel the report processing.

Example

<div id="reportviewer">ReportViewer</div>
<script>
    var reportviewerObj = $("#reportviewer").data("boldReportViewer");
    reportviewerObj.cancelRendering(); // To cancel the report processing.
</script>