General information
Category:
Reports & Report designer
Title:
Print Preview displays in Top Level Form - not _Screen
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only