FloridaHawk
Programmer
I have had problems with my logon scripts in the example aps pages provided by Crystal Decisions. Getting error on the server in attempting to access the data source. Heres the string I use:
userid = "YOUR_DATABASE_USERID"
password = "YOUR_DATABASE_PASSWORD"
session("oRpt"
.MorePrintEngineErrorMessages = False
session("oRpt"
.EnableParameterPrompting = False
' Set the location
set crtable = session("oRpt"
.Database.Tables.Item(1)
crtable.SetLogonInfo "Automation", "pubs", cstr(userid), cstr(password)
userid = "YOUR_DATABASE_USERID"
password = "YOUR_DATABASE_PASSWORD"
session("oRpt"
session("oRpt"
' Set the location
set crtable = session("oRpt"
crtable.SetLogonInfo "Automation", "pubs", cstr(userid), cstr(password)