Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Connection with oledb in crystal report from visual basic

Posted on 2003-11-19
1
Medium Priority
?
889 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 375 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

877 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