7. Using the Report

Working with Report in a code

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

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