
Crystal 8, ActiveX Viewer not refreshing reports
Hi,
I've got a weird problem. I have some code that *should* work according to
Seagate and it doesn't.
The reports work fine on the machine that they were designed on. However,
when I distribute them they do not refresh properly.
I have read the Seagate KnowledgeBase article regarding LogonServerEx etc.
and am using SetLogonInfo instead. The reports open but when I go to
refresh them they try and open with the original datasource information.
Here's the code I am using
Set CRrpt = CRApp.OpenReport(strPath)
CRrpt.Database.Tables(1).SetLogOnInfo strDSN, strDatabaseName, "", ""
frmReports.CRViewer1.ReportSource = CRrpt
frmReports.CRViewer1.ViewReport
Any help would be greatly appreciated!
Thanks,
Matt Egen