Click here to Skip to main content
15,937,012 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,


Here am working an erp project. Here i wants to create crystal report

from sql database. I done that. But my problem is each every time i click report

button immediately an window open it ask sql server userid and password. After i typed

that report will shown. But i wants to show report without ask user id and password.

Front End: C# windows application

Back End: sql server 2005


Thanks in Advance

Dhinesh kumar.V
Posted

1 solution

Try doing this in your code while launching report:
C#
myCrystalReprot.SetDatabaseLogon("myUsername", "myPassword");


Further, see if these help:
C# Crystal Reports Dynamic Logon parameters [^]
Crystal Reports asks for Username and Password while loading[^]
Topic: asking every time username password[^]
 
Share this answer
 
Comments
Dhinesh kumar.V 9-Jul-12 6:07am    
Thanks for your reply.. but i dont know where i put the above exactly.. please send with simple syntax.

Thanks & Regards

Dhinesh Kumar.V
Sandeep Mewara 9-Jul-12 6:40am    
Did you follow the reference links? :doh:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900