468,733 Members | 1,412 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,733 developers. It's quick & easy.

crystal report logon server

Das
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
Next

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,
clsDefine.STR_SERVER,clsDefine.STR_DATABASE);

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 1290

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 zhoujie | last post: by
xarzu
2 posts views Thread by xarzu | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.