on 09-11-2014 10:47 AM
Hi,
while I used VS2010 to develop crystal report . It asks user name and password after compile. But i create a service based database.
Hi Srinivasan,
you can initialize the login authentication by using the SetDatabaseLogon
here's reference link:
http://msdn.microsoft.com/en-us/library/ms226061(v=vs.80).aspx[^]
For Ex its something like this:
dim rpt as new rptCrystalReportFileName
rpt.SetDatabaseLogon(username,password)
hope that helps...
--DJ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srinivasan
While the code DJ provided may work, it will only work if you are not changing the datasource. For the best code to use, please see the sample csharp_win_dbengine.zip / vb_win_dbengine.zip app available here:
Crystal Reports for .NET SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
Developer Help files are here:
SAP Crystal Reports .NET SDK Developer Guide
SAP Crystal Reports .NET API Guide
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.