Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
VB Components Issues specific to components in VB.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 18th, 2007, 06:45 AM
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
myTable.ApplyLogOnInfo(myLogin)
Next
   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..



  #2 (permalink)  
Old July 23rd, 2007, 06:33 AM
Friend of Wrox
 
Join Date: Oct 2004
Location: India.
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default

hv u included all the required Namespaces???




Similar Threads
Thread Thread Starter Forum Replies Last Post
crystalreport guptamkomal ASP.NET 1.0 and 1.1 Basics 9 May 31st, 2007 12:51 AM
CrystalReport nilesh kureriha BOOK: Professional Crystal Reports for VS.NET 0 May 29th, 2007 11:53 PM
crystalreport XI guptamkomal BOOK: Professional Crystal Reports for VS.NET 0 May 10th, 2007 01:41 AM
vb6 and crystalreport safvb VB Components 3 May 4th, 2007 02:30 AM
CrystalReport .Export kathir Crystal Reports 0 January 20th, 2005 02:00 AM





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