ReportsMan
MIS
I am trying to upgrade my ASP to CR8 from 7 but my logon code does not appear to work (see below) -
I have checked the samples and Seagate knowledgebase but no solution helped - what am I doing wrong?
'--> CREATE THE APPLICATION OBJECT
Set oApp = Server.CreateObject("CrystalRuntime.Application"
Set oRpt = oApp.OpenReport(Path & reportname, 1)
oRpt.MorePrintEngineErrorMessages = False
oRpt.EnableParameterPrompting = False
'--> SET THE LOCATION
oApp.LogonServer "p2sodbc.dll", CStr(DSN2), CStr(DatabaseNam), Cstr(uid), Cstr(pword)
set crtable = oRpt.Database.Tables(1)
crtable.SetLogonInfo CStr(DSN2), CStr(DatabaseNam), Cstr(uid), Cstr(pword)
I have checked the samples and Seagate knowledgebase but no solution helped - what am I doing wrong?
'--> CREATE THE APPLICATION OBJECT
Set oApp = Server.CreateObject("CrystalRuntime.Application"
Set oRpt = oApp.OpenReport(Path & reportname, 1)
oRpt.MorePrintEngineErrorMessages = False
oRpt.EnableParameterPrompting = False
'--> SET THE LOCATION
oApp.LogonServer "p2sodbc.dll", CStr(DSN2), CStr(DatabaseNam), Cstr(uid), Cstr(pword)
set crtable = oRpt.Database.Tables(1)
crtable.SetLogonInfo CStr(DSN2), CStr(DatabaseNam), Cstr(uid), Cstr(pword)