Visual Basic (Declaration) | |
---|---|
Public Property CommandTimeout As System.Integer |
C# | |
---|---|
public System.int CommandTimeout {get; set;} |
When using this property with the OleDBDataSource, you need to verify with the provider that it supports the command timeout settings. Some of them do not. This is provider-specific, so we are unable to provide a list of working providers.
C# | Copy Code |
---|---|
private void detail1_Format(object sender, System.EventArgs eArgs) { rptSubBM rpt = new rptSubBM(); GrapeCity.ActiveReports.Data.OleDBDataSource subDS = new GrapeCity.ActiveReports.Data.OleDBDataSource(); subDS.CommandTimeout = 30; subDS.ConnectionString = this.ds.ConnectionString; subDS.SQL = "Select * from products where categoryID = " + m_categoryID; rpt.DataSource = subDS; ctlSubReport.Report = rpt; } |
Visual Basic | Copy Code |
---|---|
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format Dim rpt As New rptSubBM() Dim subDS As New GrapeCity.ActiveReports.Data.OleDBDataSource() subDS.CommandTimeout = 30 subDS.ConnectionString = Me.ds.ConnectionString subDS.SQL = "Select * from products where categoryID = " + m_categoryID rpt.DataSource = subDS Me.ctlSubreport.Report = rpt End Sub |