?
Solved

crystal reports in vb.net - change ODBC connection via application

Posted on 2013-02-07
3
Medium Priority
?
988 Views
Last Modified: 2013-02-11
Hi,

I hope that someone is able to help. I am setting up a test system and this also requires me taking a copy of all the reports from the live system. The problem is that they all use a LIVE DSN ODNC connection. I have started trying to write an application that will go through all the report files in a directory and change the connection and save the report. I am not sure how i would change the ODBC connection in the crystal report. I have created an application with a crystal report:

Then load the report:
rpt.Load("C:\missingarticles.rpt")

I am not sure if i use the following to set the ODBC connection property?
rpt.DataSourceConnections

Any help would be appreciated.

Regards,

Ross
0
Comment
Question by:ross13
[X]
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
3 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 38863823
if you want to manage your ODBC connections, check http://emoreau.com/Entries/Articles/2009/08/Managing-ODBC-entries-from-a-Net-application.aspx

but you could also push a dataset to the report (instead of having the report fetching its own data). check http://emoreau.com/Entries/Articles/2006/09/Feeding-Crystal-Reports-from-your-application.aspx
0
 
LVL 18

Accepted Solution

by:
vasto earned 2000 total points
ID: 38864165
Check this tool :
http://www.r-tag.com/Pages/CRDataSource.aspx

It will update all reports from a folder with subfolders to a new ODBC or OLEDB connection. ( What you tried to do)
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 38866774
IS your test/dev system on the same server?
If not you could create ODBC connections with the PROD name on the servers and use them for all new reports which would eliminate the need to change as you move a report between systems

mlmcc
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

765 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