Your not logged into the server. You need to set login information to open the database. I code in VB so maybe this applies to Cold Fusion as well. It can't hurt to try.
(This is the CR8 Automated Server application.)
Declare variables for CR8 however its done in CF:
Global CA As CRPEAuto.Application
Global CR As CRPEAuto.Report
Global DbName As CRPEAuto.Database
Global DbTbls As CRPEAuto.DatabaseTables
Global DbTbl As CRPEAuto.DatabaseTable
(this is VB code)
Next, set your application and open your report:
Set CA = CreateObject("Crystal.CRPE.Application"
Set CR = CA.OpenReport(Report Location and Name)
Next, set your database name and tables:
Set DbName = CR.Database
Set DbTbls = DbName.Tables
Set DbTbl = DbTbls.Item(1)
Next, Logon to server
Call DbTbl.SetLogOnInfo(server ID, "", User ID, PassWord)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.