Joined: 14 Nov 2008
Online Status: Offline
Posts: 1
Topic: How to hide the dialogbox of database login? Posted: 14 Nov 2008 at 3:23am
How to hide or disable the dialogbox of database login.
This is the code I have:
rptViewer.ShowDialog()
When I use the debugging the code goes to that line then ask for the Server Name, Tablename , Username and Password. It's OK for us as developer to supply the information but on the end user of the system it is not. We cannot give them the details of the account in the SQL to preserve the integrity of the data right? Please help. Thank you!
Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Posted: 14 Nov 2008 at 11:15am
You can call the SetDatabaseLogin() method of the ReportDocument object. This way you can login to the server via code and the user doesn't know what credentials you used.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum