Search Results for

    Show / Hide Table of Contents

    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();
    }
    

    We will consider these steps in details in the following sections of this manual.

    Back to top © 1998-2025 Copyright Fast Reports Inc.