Create a Background Schedule to Run Crystal Reports

In iFIX, you can create a background schedule that runs Crystal reports. Sample Visual Basic code to perform this function is detailed below:

Private ReportFileName
Private CrystalReport

Private Sub KKTimer_OnTimeOut(ByVal lTimerId As Long)

Set CrystalApplication = CreateObject("Crystal.CRPE.Application")
Set CrystalReport = CrystalApplication.OpenReport("C:\Dynamics\APP\RTtemplate.rpt") CrystalReport.Printout False

Set CrystalReport = Nothing
Set CrystalApplication = Nothing
End Sub