Search results

Methods

destroy()

Destroy the client and server side report viewer processing objects.

Example

<div id="report viewer"></div>
<script>
    var reportviewerObj = $("#reportviewer").data("ejReportViewer");
    reportviewerObj.destroy(); //Destroy the report viewer processing objects.
</script>

exportReport()

Export the report to the specified format.

Example

<div id="reportviewer">ReportViewer</div>
<script>
    var reportviewerObj = $("#reportviewer").data("ejReportViewer");
    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("ejReportViewer");
    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("ejReportViewer");
    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("ejReportViewer");
    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("ejReportViewer");
    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("ejReportViewer");
    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("ejReportViewer");
    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("ejReportViewer");
    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("ejReportViewer");
    reportviewerObj.gotoNextPage(); //To navigate to the next page
</script>

gotoPageIndex()

Go to specific page index of the report.

Example

<div id="reportviewer">ReportViewer</div>
<script>
    var reportviewerObj = $("#reportviewer").data("ejReportViewer");
    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("ejReportViewer");
    reportviewerObj.gotoPreviousPage(); // To navigate to the previous page
</script>

print()

Print the report.

Example

<div id="reportviewer">ReportViewer</div>
<script>
    var reportviewerObj = $("#reportviewer").data("ejReportViewer");
    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("ejReportViewer");
    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("ejReportViewer");
    reportviewerObj.refresh(); // To refresh the report.
</script>