Brian -
I hate to say this... I think this is a bug in VFP9's window stack handling.
For a start, the preview comes up fine in a separate topform if you trace through the code line-by-line.
Secondly, it also comes up fine if you put the following commands around the report form command:
deactivate Window myform
REPORT FORM HOME(1) + "Tools\Filespec\60SCX1.frx" OBJECT loListener
activate Window myform same
Unfortunately, this is not an ideal workaround, as you'll see.
Another workaround is to do this:
define window dummy from 1,1 to 10,10
activate window dummy
REPORT FORM HOME(1) + "Tools\Filespec\60SCX1.frx" OBJECT loListener
This succeeds in forcing the preview back to its own topform, but also shows the main VFP window (_SCREEN). If you make _SCREEN.Visible=.F. then it fails to have the desired effect.
I am fairly sure that VFP9 introduced at least one bug in the window stack handling. This looks like another set of repro steps.
This is not as helpful as I would have liked to have been.
- Colin