BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

LogonServer in Crystal 10 using ADO

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting
View previous topic :: View next topic  
Author Message
doug
Guest





PostPosted: Wed Jan 25, 2006 3:45 am    Post subject: LogonServer in Crystal 10 using ADO Reply with quote



Hi Folks,
I would like my delphi app to tell Crystal (10) to log on to the
SQL database before I pull up any reports, and I want all of
the reports to use the resulting connection. Problem is that I
can't get LogonServer to LogOn. Works fine with DLLName =
pdssql.dll, but not with ADO (DLLName = crdb_ado.dll). I would
convert all of my reports to use pdssql.dll, but I don't know
how. Anyone know?

Here's what I am trying on FormShow:

i := Crpe1.LogOnServer.Add('SERVERNAME');
with Crpe1.LogOnServer[i] do
begin

DLLName := 'crdb_ado.dll';
UserID := 'user';
Password := 'password';
DatabaseName := 'dbname';
if LogOn then
ShowMessage('The Logged On')
else
ShowMessage('Error Logging on to Server');
end;
Back to top
doug
Guest





PostPosted: Thu Jan 26, 2006 4:51 am    Post subject: Re: LogonServer in Crystal 10 using ADO Reply with quote



Followup:

It appears that the LogOnServer functionality is not working
if crdb_ado.dll is specified either in VCL or in RDC
(Crystal 10). "Logon Failed" is the result either way.
The idea is to save time in the report init
(hopefully) by directing all subreports to a common session
that can be initiated before any reports are requested.

If anyone has this working, please let me know. Thanks,
Doug
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.