?
Solved

Multiple Databases in Crystal 8.5 and VB6 Viewer

Posted on 2006-06-23
4
Medium Priority
?
743 Views
Last Modified: 2012-06-27
Hello,

I have to 2 applications:  MAS200 and Sage CRM.  They use a Providex DB and a SQL DB respectively.  I have a crystal report that pulls information from both of these databases using ODBC and it works well.

I am trying to add the crystal report viewer functionality to a VB6 toolbar for users to run their own reports.  Everything works fine when I only run a report that uses the SQL DB.  But as soon as I try to run a report that uses both DB's, i get a "Server has not yet been opened".

I tried using the .Database.LogonServer and it only works for the SQL ODBC Connection

Set report = crapp.OpenReport(myreport)
    report.Database.LogOnServer "p2sodbc.dll", "Sage CRM", , "sa", "password"
    report.Database.LogOnServer "p2sodbc.dll", "SOTMAS90", "SAM", "adm", "password"

Is this even Doable?  If so, can anyone help me please!!!  I need to put both DB's information on one report!

MANY MANY THANKS TO ANY HELP!!
0
Comment
Question by:posae
[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
4 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 16973762
Not in the way you are trying to do it.

Crystal doesn't handle multiple data sources very well especially if they are from different databases or data base types as in this case.

You can build the report against one of the data sources and use a subreport for the other source.

You could build a basically empty report and use 2 subreports, one for each data source.

You could link the tables in one of the databases into the other thus having a single datasource.

mlmcc
0
 

Author Comment

by:posae
ID: 16975010
Hi mlmcc!  Thanks for your time.

I do have these set up as sub reports.  You mentioned linking the tables in one database, what does this mean?  

THanks!
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 2000 total points
ID: 16975878
With some databases you can link to other databases.  Check with your DBA.

I don't know if these are compatible or not.  You maight also be able to use Access to link the tables into a new database.

mlmcc
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 16981071
Glad i could help

mlmcc
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
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
Course of the Month14 days, 13 hours left to enroll

771 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