Print Page | Close Window

Logon Info

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Data Connectivity
Forum Discription: How to connect to data sources and export reports
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=12599
Printed Date: 28 Apr 2024 at 6:03pm


Topic: Logon Info
Posted By: dotNet2010
Subject: Logon Info
Date Posted: 13 Mar 2011 at 8:38pm
Has any been able to use  SetConnection and/or SetDatabaseLogon
succesfully?
 
The following code works fine when changing the username and password
 
myReport.DataSourceConnections.Item(i).SetLogon(dbUserName, dbPassword)
 
SetConnection should work the same as SetLogon but it does not

myReport.DataSourceConnections.Item(i).SetConnection(dbServer, dbDataBase, dbUserName, dbPassword)

Any suggestions?

 




Print Page | Close Window