Solved

Connection with oledb in crystal report from visual basic

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
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 …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

713 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