Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Connection with oledb in crystal report from visual basic

Posted on 2003-11-19
1
881 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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 …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

809 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