Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Report - Oracle

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I try to link report to Oracle databse, but I can't do it.
Can someone explain what's wrong with following code ?
The MsgBox always return 0 .



Dim Report As New CrystalReport1()

Private Sub FrmReport_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

WindowState = FormWindowState.Maximized

Dim sConn As String = "Provider=MSDAORA.1;User ID=baseID;Password=basePass;Data Source=Base"
Dim sSql As String = "select * From Tab"
Dim Conn As New OleDbConnection(sConn)
Conn.Open()
Dim AD As New OleDbDataAdapter(sSql, Conn)
Dim DS As New DataSet()
AD.Fill(DS, "Tab")

Report.SetDataSource(DS)

MsgBox(Report.Database.Tables.Count)

Conn.Close()

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top