Reports for WinForms | ComponentOne
Working with C1Report / Loading, and Rendering the Report / Loading Report Data / Loading Data from a Stored Procedure
In This Topic
    Loading Data from a Stored Procedure
    In This Topic

    Stored procedures (or sprocs) can assist you in achieving a consistent implementation of logic across applications, improve performance, and shield users from needing to know the details of the tables in the database. One of the major advantages to stored procedures is you can pass in parameters to have the database filter the recordset. This returns a smaller set of data, which is quicker and easier for the report to manipulate.

    You can populate a report from a stored procedure in the C1Report Wizard. To open the C1Report Wizard complete one of the following:

    For more information accessing the Edit Report link, see C1Report Tasks Menu or C1Report Context Menu.

    Populating a report from a stored procedure is no different than using SQL statements or straight tables. In the first screen of the C1ReportWizard, click the ellipses button to choose a datasource. Then choose a Stored Procedure from the list of available Data sources:

    Select Next and continue through the wizard.

    As with loading other forms of data, you have two options: