[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

cannot get CR11 connected to oracle when using VB6..

Posted on 2005-04-25
4
Medium Priority
?
235 Views
Last Modified: 2008-02-01
ive got a complicated report to run and the SQL is so long, and hard that i have to use an ADO connection to the database and select the results into a temporary table.

I have designed a CR11 report in the Crystal Reports designer and now come to join the two together; In the VB6 IDE i added a new CR11 designer and said "get from an existing report"

now, no matter what i do, though the report looks fine on the designer (layout wise, not preview wise) i cannot get it to log on to my oracle database properly. It fails with a variety of reasons (1005, 1017, 1007 oracle error codes) depending on what i do, and ive tried everything i can find:

Report.Database.LogonServer ...
Report.Database.Tables(i).ConnectionProperties.DeleteAll ... Add...

I just cannot get any connection properties to work correctly with this report. Has anyone got some code snippets or maybe even an entire small test exe that uses VB6 code to show a CR11 report? It's driving me crazy...


Even if i start a new, blank exe project, add a new, blank designer.. Go into the database expert, make a new conenction to the oracle server, put the username and password into the wizard, select a table, drop fields onto the table from the report, and then press Play to start the EXE, i get a Logon Failed error message.. I cant justify my manager spending 500 quid on this! Am i missing something really simple?
0
Comment
Question by:cjard
  • 2
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
GJParker earned 600 total points
ID: 13865008
Take a look at this thread it may shed some light on the situation.

http://www.experts-exchange.com/Databases/Crystal_Reports/Q_21301694.html?query=CRXi+Oracle&topics=40

HTH

Gary
0
 
LVL 6

Author Comment

by:cjard
ID: 13865534
i solved it another way:

  Dim adoRS As ADODB.Recordset
  ps.prepareStatement "SELECT * FROM temptable"
  Set adoRS = ps.executeQuery
  Form2.Report.Database.SetDataSource adoRS, 3, 1


the ps is just a helper class for ADO. any code that returns an ADODB.RecordSet would work with this
0
 
LVL 6

Author Comment

by:cjard
ID: 13865539
ps; i'll accept your answer though, as it's a good find for someone else... ;)
0
 
LVL 19

Expert Comment

by:GJParker
ID: 13865570
Glad you got it sorted

Gary
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Loops Section Overview
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. …
Suggested Courses
Course of the Month17 days, 17 hours left to enroll

830 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