Articles in this section
Category / Section

How to load the report in print mode when initially render the ReportViewer control?

1 min read

This article describes how to load the report in print mode when rendered in jQuery ReportViewer control. You can also refer to the Getting Started with JavaScript ReportViewer from the User Guide, available in the following link:

https://help.syncfusion.com/js/reportviewer/getting-started

Rendering Report in Print Mode:

The JavaScript ReportViewer control provides inherent support to initially render the report in Print Mode. You can render the report in print mode using printMode property. Setting this mode as false renders the report in normal mode. The following code example explains how to initially render the ReportViewer control on PrintMode.

<script type="text/javascript">
        $(function () {
            $("#container").ejReportViewer(
            {
                reportServiceUrl: "../api/ReportApi",
                processingMode: ej.ReportViewer.ProcessingMode.Local,
                reportPath: "~/ReportTemplate/SampleReport.rdlc",
                printMode: true
            });
        });      
</script>

 

Run the Application:

Run the sample application and you can see the output of the initial rendering of print mode in the following screenshots:Initial rendering of print mode is generated

Demo Sample

You can download the Demo Sample from the following link.

https://www.syncfusion.com/downloads/support/directtrac/general/ze/PrintMode2139251030.zip

Further References

You can find documentation and demo samples for JavaScript ReportViewer Control from the following links.

https://js.syncfusion.com/demos/web/

https://help.syncfusion.com/js/overview

 

Conclusion

I hope you enjoyed learning about how to load the report in print mode when initially render the ReportViewer control.

You can refer to our jQuery ReportViewer’s feature tour page to know about its other groundbreaking feature representations.

For current customers, you can check out our WinForms components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our  jQuery ReportViewer and other jQuery components.

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied