Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 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
 
Old October 21st, 2005, 04:33 PM
Registered User
 
Join Date: Oct 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Crystal Report 4.6 in vb6

i did program with vb6 and in this program i use close data base with password and i can call the data base in my program but the problem that i have report in my program and this report designed in Crystal Report 4.6 and the main problem that when i call the report in my program it says to me enter the password of data base so how can i make the report access the closed data base by it self .
by example :
my data base :
Dim db As dao.Database
Set db = DBEngine.OpenDatabase(App.Path & "\data.mdb", _
False, False, ";pwd=123")
i call the report like this :
cryst1.ReportFileName = (App.Path & "\myreport.rpt ")
cryst1.Action = 0
after this when i running my prgram and want execute the repoert
message come to me says to me enter data base password
and after i enter it it work good
plzzzzzzzzzzzzzz
helppppp meeeeeeee
Alaa




 
Old November 9th, 2005, 11:15 PM
Registered User
 
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had the question,hope help me too.thanks

 
Old November 22nd, 2005, 09:31 PM
Registered User
 
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use ODBC,by Cryst1.Connectstring="... ...." don't use .mdb file.that work good.





Similar Threads
Thread Thread Starter Forum Replies Last Post
crystal report export using vb6 mycha_2003 Pro VB Databases 1 March 29th, 2016 03:04 AM
VB6 w/ Crystal Report cbowles VB How-To 1 December 23rd, 2006 02:10 AM
VB6 with crystal report 10 pritz VB How-To 31 June 27th, 2006 06:23 AM
crystal report and vb6 zaeem VB Databases Basics 0 May 20th, 2005 11:59 AM
Crystal report 9 on VB6 mahanama VB How-To 2 February 1st, 2005 09:11 AM





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