View Single Post
  #1 (permalink)  
Old July 18th, 2007, 06:45 AM
MathLearner MathLearner is offline
Authorized User
Join Date: May 2007
Location: Chennai, Tamilnadu, India.
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to MathLearner
Default CrystalReport and vb6.0

HI all
      I am having a problem in connecting crystal report.
in local machine it is running correctly.

Public mApp As New CRAXDRT.Application
Public mRep As New CRAXDRT.Report
Public dbt As CRAXDRT.DatabaseTable
Public dbts As CRAXDRT.DatabaseTables
                   we are using this object CRAXDRT.. but it is not supporting to acess the other machine..

                 so we try to use

Dim myTable As CrystalDecisions.CrystalReports.Engine.Table
Dim myLogin As CrystalDecisions.Shared.TableLogOnInfo
For Each myTable In Rport.Database.Tables
myLogin = myTable.LogOnInfo
myLogin.ConnectionInfo.ServerName = ServerName
myLogin.ConnectionInfo.DatabaseName = DatabaseName
myLogin.ConnectionInfo.Password = Password
myLogin.ConnectionInfo.UserID = UserName
   here the error is userdefined type not defined for the declaration statements..
  that is
      Dim myTable As CrystalDecisions.CrystalReports.Engine.Table
      Dim myLogin As CrystalDecisions.Shared.TableLogOnInfo
                  pls help us to solve this error..
                                  help us..