p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   VB Components (http://p2p.wrox.com/forumdisplay.php?f=84)
-   -   CrystalReport and vb6.0 (http://p2p.wrox.com/showthread.php?t=60225)

MathLearner July 18th, 2007 06:45 AM

CrystalReport and vb6.0
HI all[8)]
      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..[?]

ashu_from_india July 23rd, 2007 06:33 AM

hv u included all the required Namespaces???

All times are GMT -4. The time now is 07:48 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.