cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Report in VS2010

Former Member
0 Kudos

Hi,

while I used VS2010 to develop crystal report . It asks user name and password after compile. But i create a service based database.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

former_member183750
Active Contributor
0 Kudos

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