Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print Preview displays in Top Level Form - not _Screen
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Print Preview displays in Top Level Form - not _Screen
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01117626
Message ID:
01117626
Vues:
47
In VFP 6 this was not a problem. This problem has come up since we converted to VFP 9. The code has not changed.

Our application is running in a top level form. Whenever there are reports to print or preview we have a .prg (that is built into the exe) issue a _screen.visible = .t., then REPORT FORM rpt001b.frx &M_print. This works fine except if we choose to preview the report and it is a multiple part report - meaning that there will be 2 parts so there will be 2 _screen.visible and 2 REPORT FORMs in the same .prg right after each other.

The first time previewing from the exe, all the multiple parts open in the _screen. But after the first time previewing, then all multiple part reports show the same behavior - the first part previews in the _screen and all other parts preview in the top level form.

_screen.visible = .t.
REPORT FORM rpt001b.frx &M_print
** do not close the window between parts as it makes the client jump back ** and forth


_screen.visible = .t.
REPORT FORM rpt001b.frx &M_print
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform