Kbase P100960: How to refresh a report automatically using 4GL and the Crystal RDC
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  18/03/2005 |
|
Status: Unverified
GOAL:
How to refresh a report automatically every 60 seconds using 4GL and the Crystal RDC
GOAL:
How to refresh a Crystal report automatically every 60 seconds
GOAL:
How to force the reload of a Crystal report after a set time period using 4GL and the Crystal Report Designer Component
FACT(s) (Environment):
Progress 8.3E
Progress 9.1D
Progress 9.1E
OpenEdge 10.x
Crystal Reports 9
Crystal Reports 10
Windows
FIX:
Use the PSTIMER OCX in conjunction with the Refresh method of the Crystal RDC/Runtime engine.
1) Add the PSTIMER control and set the Interval property (in milliseconds) to the desired refresh period.
2) Add a new OCX.Tick trigger based on the control frame of the PSTIMER OCX.
3) Add the following statement to the trigger depending on which version of Crystal Reports is in use:
/* Crystal Reports 9 */
chCtrlFrame:CRViewer9:Refresh().
/* Crystal Reports 10 */
chCtrlFrame:CrystalActiveXReportViewer:Refresh().