i am trying to create a crystal report and run it on the fly so far this is where i am can anyone help or point me in the right direction.Any help will be appreciated
Private Function SetupReport(ByRef objCrystalReportDocument As CrystalDecisions.CrystalReports.Engine.ReportDocument) As System.Boolean
Dim crTableLogOnInfo As CrystalDecisions.Shared.TableLogOnInfo
Dim crDatabase As CrystalDecisions.CrystalReports.Engine.Database
Dim crTables As CrystalDecisions.CrystalReports.Engine.Tables
Dim aTable As CrystalDecisions.CrystalReports.Engine.Table
Dim bTable As CrystalDecisions.CrystalReports.Engine.Table
Dim blnTest As System.Boolean
Dim strLocation As System.String
crDatabase = objCrystalReportDocument.Database
crTables = crDatabase.Tables
For Each aTable In crTables
crTableLogOnInfo = aTable.LogOnInfo
crTableLogOnInfo.ConnectionInfo.UserID = strUID
crTableLogOnInfo.ConnectionInfo.Password = strPWD
crTableLogOnInfo.ConnectionInfo.ServerName = strDSN
crTableLogOnInfo.ConnectionInfo.DatabaseName = strDB
aTable.ApplyLogOnInfo(crTableLogOnInfo)
aTable.Location = strLocation
blnTest = aTable.TestConnectivity()