|
-
Sep 13th, 2015, 06:49 AM
#1
Thread Starter
New Member
How to Logon Server and SQL Server
Dear All,
I have create VB6 application and using SQL Server 2000 Databases.
I have create Crystal Report 8.5 using Stored Procedures.
Every time the Server change or database name change.
I have to open all Crystal Reports files and do it manually.
I need VB6 code to set Database name and server when using crystal Report.
I am using OCX Control.
I have use CrystalReport.Logon
it fails.
Please advice
-
Sep 13th, 2015, 08:32 AM
#2
Re: How to Logon Server and SQL Server
It's been a long time since I do it but you can open the CR and then iterate through the report and sub reports... In the object model somewhere there is a method ChangeServer I think is what it is called, use that to reset the connection string for the reports and it should be fine.
-tg
-
Sep 15th, 2015, 10:32 PM
#3
Thread Starter
New Member
Re: How to Logon Server and SQL Server
Thanks for your reply..
Infact if you can show me coding through vb6 using ocx control.
How to change for the same.
Your reply is appreciate.
Thanking you
-
Sep 16th, 2015, 07:00 AM
#4
Re: How to Logon Server and SQL Server
That was over 15 years ago... and I no longer use CReports nor do I use VB6 any more... so you'll need to go looking through the documentation and the object model and see if you can find it. It should be obvious. It's either Set or Open followed by either Database or Connection or Server... it's some combination of those.
-tg
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|