By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,652 Members | 1,905 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,652 IT Pros & Developers. It's quick & easy.

Using DSN in VB 6.0 with Crystal Report 10

P: 16
Hi,
Im using VB6.0, Crystal report 10 and MSaccess Database. I was using Crystal report 6 and later upgraded to CR10. In VB6 i used DSN like
.Connect = "DSN=DBName" & ";UID=admin;PWD=;"
Now in CR10 i have created reports without using DSN in VB. Can any help how to use DSN in VB6.0 with CR10 or is there any method so that i no need to use DSN in the above said requirements.

The code used for CR10 is
Set Report = Appl.OpenReport(App.Path & "\SampleReport.rpt")
CRViewer1.ReportSource = Report
CRViewer1.Visible = True
CRViewer1.ViewReport

Please guide me in using/without using DSN
THANKS in advance.
Apr 11 '08 #1
Share this Question
Share on Google+
4 Replies


debasisdas
Expert 5K+
P: 8,127
Are you facing any problem with your code ?
Apr 11 '08 #2

P: 16
Are you facing any problem with your code ?
I have tested and it not giving any error. Does CR10 works without using DSN in VB6.0 code?
Apr 12 '08 #3

QVeen72
Expert 100+
P: 1,445
Hi,

You want to create CRX report with DSN..?
or pass DSN info from VB6 to CRX..?

Regards
Veena
Apr 12 '08 #4

P: 16
Hi,

You want to create CRX report with DSN..?
or pass DSN info from VB6 to CRX..?

Regards
Veena
Thanks for your reply veena. I need to pass DSN from VB6 to crx
Apr 23 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.