Crystal Reports asks for Username and Password while loading

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2007
Posts: 15
Reputation: potatochips is an unknown quantity at this point 
Solved Threads: 0
potatochips potatochips is offline Offline
Newbie Poster

Crystal Reports asks for Username and Password while loading

 
0
  #1
Nov 7th, 2008
Hi,

My Crystal Report is using VB.NET and Sql server 2005.
The report can be displayed but everytime it will prompt me to key in the Username n Password..


is there anyway to automatically pass the login information to reports?

thanks
=)
Last edited by potatochips; Nov 7th, 2008 at 4:45 am.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Crystal Reports asks for Username and Password while loading

 
0
  #2
Nov 7th, 2008
An idea but not necessarily the best,

you could write it to the registry.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 15
Reputation: potatochips is an unknown quantity at this point 
Solved Threads: 0
potatochips potatochips is offline Offline
Newbie Poster

Re: Crystal Reports asks for Username and Password while loading

 
0
  #3
Nov 7th, 2008
hi
thanks for your reply, but could u guide me to how to achieve that?
=D
cos im kinda new to all this
=/

thanks lots!
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 15
Reputation: potatochips is an unknown quantity at this point 
Solved Threads: 0
potatochips potatochips is offline Offline
Newbie Poster

Re: Crystal Reports asks for Username and Password while loading

 
0
  #4
Nov 10th, 2008
ok i solved the problem myself..
i shall paste the code here if somebody met the same problem as me..
=)

just need a simple code :

  1. report.SetDatabaseLogon(user, pwd)

u need to declare the "report" and the user, pwd before this line of code..
=D
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 23
Reputation: bruce2424 is an unknown quantity at this point 
Solved Threads: 0
bruce2424 bruce2424 is offline Offline
Newbie Poster

Re: Crystal Reports asks for Username and Password while loading

 
0
  #5
Nov 10th, 2008
You can pass login parameter to crystal reports dyanmically .

http://vb.net-informations.com/cryst...ynamically.htm

bruce.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC