Solved

Connection with oledb in crystal report from visual basic

Posted on 2003-11-19
1
877 Views
Last Modified: 2008-02-07
I have an application developed in visual basic that uses for the reports crystal reports 8. The connection to the Database is done by means of oledb. Since I can from visual basic change the connection without need to use a connection SQL Server ODBC.
0
Comment
Question by:CSada
1 Comment
 
LVL 13

Accepted Solution

by:
EwaldL earned 125 total points
ID: 9780567
hi csada, please bear with me if i haven't fully understood the question yet. you have created a report in cr 8 using an ole db connection and want to point this report via vb to a different server / database? If so, here is some code for the report designer component (rdc).

Dim myReport As CRAXDRT.Report
.....
Dim myTable As CRAXDRT.DatabaseTable
For Each myTable In myReport.Database.Tables
  myTable.SetLogOnInfo "ServerName", "DatabaseName", "User", "Password"
  myTable.Location = "Database.dbo." + myTable.Name
Next

let us know in case you are using a different object model, although i dont think i could help you myself then.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now