Learn how to a build a cloud-first strategyRegister Now


Delphi 7 Crystal 10 RDC

Posted on 2005-05-06
Medium Priority
Last Modified: 2008-01-09
I was trying to find out how to change cysrtal data source, my Delphi 7 app can need to switch to various sql instances using ADO,
Crystal 10 does not change sucessfully

two attempts are as follows
number 1
  for i := 0 to (Crpe.LogOnInfo.Count - 1) do
//frmLocation.edtInstance.Text  name of the sql instance on the server

    Crpe.LogOnInfo[i].ServerName := GetComputerNetName() + '\' + frmLocation.edtInstance.Text;  
    Crpe.LogOnInfo[i].Password := 'sa';
    Crpe.LogOnInfo[i].DatabaseName := 'VoterNetWrk';
    Crpe.LogOnInfo[i].UserID:= 'vndata2005';

  crpe.DiscardSavedData ;
  Crpe.Connect.ServerName := GetComputerNetName() + '\'  + frmLocation.edtInstance.Text;
  Crpe.Connect.UserID := 'sa';
  Crpe.Connect.Password := 'vndata2005';
  crpe.Connect.DatabaseName := 'VoterNetWrk';

I found referances here to cr 9 using the RDC,  but having trouble on finding an example with CR 10
I would like a quick fix for now since I plan to move the whole apt to VB.net or Delphi.NET, but I need something working in the meantime.
Willing to try the RDC but would perfer not to at this point.
I know the VCL is going away.
any Ideas?

Question by:MichaelLuna
  • 4

Accepted Solution

jrmn earned 100 total points
ID: 13943293
Hi MichaelLuna,

I don't think it's true that the VCL is going away. Just recently, BO releases the crystal report 11 VCL for delphi 7. Although BO don't have any VCL yet for Delphi 8 and up, I heard its on the way.
If you don't have the Crystal report 10 VCL yet, you can get it here:


I think there are few sample apps included when you install the VCL...not sure though.


Author Comment

ID: 13945819
I have the VCL installed
I just need to changes the instance of msde/sql the report uses for the data source at run time.

instance 1   CDMain\losAngeles
instance 2   CDMain\SantaMonica

The databases are names the same for each instance.
A client could have up to 5 different citys.  Each is maintained serperately.
VCL works great for everything else, I just need to changes the server instance.

Author Comment

ID: 13956275
Problems solved.
The reports were based on a stored procecure which queried a table on another database in the same server.  Even with the same use login it just would not work.

Had to reconfigure the program to only referance  on database, then switching servers no longer became a problem.
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.


Author Comment

ID: 13957205
I guess 50 points for trying.  The answer was no help.
Thanks anyway

Author Comment

ID: 13969685
Yes, How do I do that?
LVL 101

Expert Comment

ID: 13974116
Points are reduced.

Select ACCEPT to the right of the chosen comment.

If there are several comments then click the link below this one that says SPLIT POINTS.


Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

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…
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 …
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. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

864 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