Skip to content

DevExpress-Examples/reporting-winforms-use-subreport-to-add-a-chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reporting for WinForms - Use Subreport Control to Add a Chart

Review the guidelines aided in the creation of this example.

Main Report

  • The main report lists products grouped by category.
  • The GroupHeader band displays the category name.
  • The GroupFields collection specifies the group field (the CategoryID field).
  • The Detail band lists products from the group field category.
  • The GroupFooter band contains an XRSubreport control.
  • The XRSubreport's ReportSource property references a chart report.
  • Add an item to the XRSubreport's ParameterBindings collection to bind the chart report's subreportCategory parameter to the main report's group field (the CategoryID field).

Chart Report

  • The chart report visualizes products for a certain category.
  • The chart report includes the XRChart control.
  • Add an item to the chart's Parameters collection to bind the chartCategory parameter to the report's subreportCategory parameter.
  • The chart series' FilterString property uses the chartCategory parameter value to filter data.

Report with Chart Subreport

Files to Review

Documentation

More Examples

Does This Example Address Your Development Requirements/Objectives?

(you will be redirected to DevExpress.com to submit your response)

About

How to create a report at runtime with a subreport that contains a chart control.

Topics

Resources

License

Stars

Watchers

Forks

Contributors