We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to Load SubReport in Syncfusion ReportViewer?

How to Load SubReport in Syncfusion ReportViewer

This article describes how to load the Subreport in the JavaScript ReportViewer. You can also refer to the Getting Started with JavaScript ReportViewer from the User Guide, available in the following link:

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

Loading SubReport in JavaScript ReportViewer:

The following steps help you to load a RDLC report with SubReport item,

  1. As per RDL standard, you can set the SubReport Path and properties like as MS ReportViewer as shown in below screenshot,

 

  1. You can pass the Datasource values to Sub Report on Report Loaded method as shown in the below example,

SubReport Model Properties:

The ReportViewer has the following subreport properties.

DataSources

Gets/sets the datasources of the subreport.

DataSourceName

Gets the datasources names of the subreport.

Parameters

Gets/sets the parameters to the subreport.

ReportPath

Gets/sets the Report Path of the subreport.

Stream

Sets the report stream for the subreport.

 

Run the Application:

Run the sample application and you can see the output of the RDLC subreport loading as displayed in the following screenshots:

Demo Sample

You can download the Demo Sample from the following link.

http://www.syncfusion.com/downloads/support/directtrac/general/ze/SubReportSample-928161950.zip

Further References

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

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

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

 

Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework:
6552 03/21/2016 03/21/2016 JavaScript ejReportViewer 4.5
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon