ActiveReports Developer 7
SqlDBDataSource Class
Members  Example  See Also 
GrapeCity.ActiveReports.v7 Assembly > GrapeCity.ActiveReports.Data Namespace : SqlDBDataSource Class

Glossary Item Box

Represents a section report data source based on the SqlDB ADO.NET data provider.

Object Model

SqlDBDataSource Class

Syntax

Visual Basic (Declaration) 
Public NotInheritable Class SqlDBDataSource 
C# 
public sealed class SqlDBDataSource 

Example

C#Copy Code
private void rpt_ReportStart(object sender, System.EventArgs eArgs)
{
    this.ds.ConnectionString = @"Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=AdventureWorks2000;Data Source=TESTING";
    this.ds.CommandTimeout = 30;
    System.IO.StringReader sr = new System.IO.StringReader(new System.IO.StreamReader("..\\..\\sqlString.txt").ReadToEnd());
    this.ds.SQL = sr.ReadToEnd();
    sr.Close();
}
Visual BasicCopy Code
Private Sub rpt_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
    Me.ds.CommandTimeout = 30
    Me.ds.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=AdventureWorks2000;Data Source=TESTING"
    Dim sr As New System.IO.StringReader(New System.IO.StreamReader("..\\..\\sqlString.txt").ReadToEnd())
    Me.ds.SQL = sr.ReadToEnd
End Sub

Inheritance Hierarchy

System.Object
   GrapeCity.ActiveReports.Data.SqlDBDataSource

See Also