PDA

View Full Version : OPen and Refresh a Crystal Report



jmwtac
06-26-2006, 06:51 AM
I am developing alot of automation and was wondering how to get a Crystal Report opened and refreshed and exported so I can import the output into a table.

I have reference crystal and got this far

Function crystal()
Dim CrystalApp As CRAXDRT.Application
Dim CrystalReport As CRAXDRT.report
Dim objform As Form
Set CrystalApp = New CRAXDRT.Application 'MANAGES REPORTS
Set CrystalReport = CrystalApp.OpenReport("c:\Charge Off Report.rpt") 'OPEN OUR REPORT
CrystalReport.Application.LogOnServer
CrystalReport.Export (True)
End Function