Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 670 Bytes

UsingReport.md

File metadata and controls

26 lines (19 loc) · 670 Bytes

7. Using the Report

Working with Report in a code

To work with Report component in a code, you need to do the following:

  • create a report instance;
  • load a report file into it;
  • register the application-defined data in a report;
  • pass the values into the report parameters, if needed;
  • run the report.

The following example demonstrates how to do this:

using (Report report = new Report())
{
  report.Load("report1.frx");
  report.RegisterData(dataSet1, "NorthWind");
  report.Show();
}

Creating a Report by Using Code | Top Page | Storing and Loading a Report