
server has not yet been opened.
I haven't found a need to mess with application logonserver method. I
just use setlogoninfo method of report object:
(sql server)
crxReport.Database.Tables(0).SetLogOnInfo Server, DBName, Login,
Password
(access)
crxReport.Database.Tables(0).SetLogOnInfo DSN
if using access, you can use either "Data Sources" section of control
panel or Crystal Reports to create the DSN (as far as I know, file DSN
will not work)
--
andrew
Quote:
> Dim crxApplication As New CRAXDRT.Application
> rptpath = "C:\R1.rpt"
> Set Report = crxApplication.OpenReport(rptpath, 1)
> Report.Database.LogOnServer "pdssql.dll", "master", "iacc",
> "vanida", "" This line it have error
> --