Writing Code
 Crystal Reports Forum : Crystal Reports .NET 2003 : Writing Code
Message Icon Topic: How to hide the dialogbox of database login? Post Reply Post New Topic
Author Message
nashty_blue
Newbie
Newbie


Joined: 14 Nov 2008
Online Status: Offline
Posts: 1
Quote nashty_blue Replybullet 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!
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet 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>
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
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



This page was generated in 0.031 seconds.