Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print Preview displays in Top Level Form - not _Screen
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Print Preview displays in Top Level Form - not _Screen
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01117626
Message ID:
01117626
Views:
48
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
Next
Reply
Map
View

Click here to load this message in the networking platform