See Also

ActiveReport Class  | ActiveReport Members  | DataMember  | Walkthrough: Data Set Windows Application

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

DataSource Property

Gets or sets the data source from which the report will retrieve data.

[Visual Basic]
Public Property DataSource As Object
[C#]
public object DataSource {get; set;}

Return Type

An object that functions as a data source.

Remarks

The data source can be set to any of the ActiveReports built-in data sources or to any of the following:

 

You cannot change the data source property settings after the report starts processing.

Example

[C#] 

private void rptProducts_ReportStart(object sender, System.EventArgs eArgs) 

    rptProducts rpt = new rptProducts(); 
    localhost.DataSetWS ws = new localhost.DataSetWS(); 
    DataSet ds = ws.GetProduct();  
    this.DataSource = ds; 
    this.DataMember = "Products"; 
}

[Visual Basic] 

Private Sub rptProducts_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
    Dim rpt As New rptProducts()
    Dim ws As New localhost.DataSetWS()
    Dim ds As New DataSet()
    ds = ws.GetProduct()
    Me.DataSource = ds
    Me.DataMember = "Products"
End Sub

See Also

ActiveReport Class  | ActiveReport Members  | DataMember  | Walkthrough: Data Set Windows Application

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.