471,322 Members | 1,538 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,322 software developers and data experts.

crystal report logon server

Hi everyone,

I have been using crystal report with visual basic 6. I know with crystal
report & sql server, if there is a different server name than the one you
created report. It prompts as Unable to Logon server.

I used to use the following code in vb6 which worked perfectly fine with vb6
to connect to any server.

Dim tlb As CRAXDDRT.DatabaseTable

For Each tbl In Report.Database.Tables
tbl.SetLogOnInfo DBServer, dBName, DBUser, DBPassword

Report.Database.LogOnServer "PDSSQL", DBServer, dBName, DBUser, DBPassword

With code given above I can connect to any given server. But now I'm using
crystal report with c#. I try to connect with code as given below

rpt.SetDatabaseLogon(clsDefine.STR_DBUSERID ,clsDefine.STR_PASSWORD,

But If there is different database server It gives an error unable to logon
to the server.

Thanks in advance....

Nov 17 '05 #1
0 1372

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Tim Jones | last post: by
2 posts views Thread by Karun Karunakaran | last post: by
3 posts views Thread by Milan Todorovic | last post: by
3 posts views Thread by Shawn H. Mesiatowsky | last post: by
reply views Thread by Timmy Jones | last post: by
19 posts views Thread by Michael O'Donnell | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.