Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to refresh report preview window
Message
De
13/01/2004 13:59:33
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
How to refresh report preview window
Divers
Thread ID:
00866449
Message ID:
00866449
Vues:
73
I'm running VFP 7 report preview in Linux/WINE.
It this case scrolling preview window makes it unreadable.
This also occurs with some video draivers in Windows.

So I need to refresh report preview window from a timer.

Which VFP command or Windows API call shoult be used for this?
Any idea ?

Test code:
CREATE CURSOR test ( test c(100))
FOR i=1 TO 100
    INSERT INTO test VALUES ( 'This is line '+TRANSFORM(i))
ENDFOR

CREATE REPORT test FROM test
_SCREEN.ADDOBJECT('refreshtimer', 'refreshtimer' )
* Scroll the report preview using arrow keys. Note that under Linux/WINE
* it becomes unreadable. See WINE bug database bug 1926
REPORT FORM test PREVIEW
_SCREEN.REMOVEOBJECT('refreshtimer')
RETURN

DEFINE CLASS RefReshTimer AS TIMER
    INTERVAL = 1500

PROCEDURE INIT
THIS.ENABLED = .T.
ENDPROC

PROCEDURE TIMER
* ToDo: Put code here which refreshes preview window
ENDPROC
ENDDEFINE
Andrus
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform