Provides data for reports.

Namespace:  C1.C1Report
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
[GuidAttribute("DA6B4F3C-B1B9-4c7a-9B27-15BD05EBE019")]
[DefaultPropertyAttribute("RecordSource")]
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
[ClassInterfaceAttribute(ClassInterfaceType.AutoDual)]
public class DataSource
Visual Basic
<GuidAttribute("DA6B4F3C-B1B9-4c7a-9B27-15BD05EBE019")> _
<DefaultPropertyAttribute("RecordSource")> _
<TypeConverterAttribute(GetType(ExpandableObjectConverter))> _
<ClassInterfaceAttribute(ClassInterfaceType.AutoDual)> _
Public Class DataSource

Remarks

Most reports specify their data sources by setting the ConnectionString and RecordSource properties. The DataSource object uses these values to connect to a database and retrieve the report data.

Alternatively, you can assign data objects directly to the Recordset property. This approach is more efficient in scenarios where the data has already been loaded by the application for other purposes, and can be used in the report directly instead of loading a copy.

Inheritance Hierarchy

System..::..Object
  C1.C1Report..::..DataSource

See Also