See Also

OleDBDataSource Class  | OleDBDataSource Members

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

CommandTimeout Property

Sets or returns the amount of time to wait while executing a command before terminating the attempt and generating an error.

[Visual Basic]
Public Property CommandTimeout As Integer
[C#]
public int CommandTimeout {get; set;}

Remarks

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 which providers it works with.

Example

[C#] 

private void Detail_Format(object sender, System.EventArgs eArgs) 
{     
    rptSub rpt = new rptSubBM();     
    DataDynamics.ActiveReports.DataSources.OleDBDataSource subDS = new DataDynamics.         
        ActiveReports.DataSources.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] 

Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.Format
    Dim rpt As New rptSubBM()
    Dim subDS As New DataDynamics.ActiveReports.DataSources.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

See Also

OleDBDataSource Class  | OleDBDataSource Members

 

 


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