Add the following to a prg file. You should be able to see the issue I'm experiencing [..]Thanks Brian, yes I see it.
If I select any other option for ShowWindow, I can access the report preview controls.Yes. The default ReportPreview.App form has trouble with trying to display itself inside a top form. It works - in that you see the preview form and toolbar inside the top form where you expect, but the toolbar is not available. I think this is a bug in VFP9.0, the unavailability of the toolbar.
Either the form hierarchy bug gets fixed in the VFP9 product, or the ReportPreview.App must get a work-around written into it. I'm not holding my breath for either of those cases.
As a work-around for you at this point, you can force the preview window to be it's own, independent top form:
PROCEDURE RunReport()
rl = newobject("ReportListener")
rl.ListenerType = 1
pc = null
do (_ReportPreview) with m.pc
pc.TopForm = .T.
rl.PreviewContainer = m.pc
REPORT FORM HOME(1) + "Tools\Filespec\60SCX1.frx" OBJECT m.rl
ENDPROC
if you set report behavior to 80, or run in VFP 8 with the set report omitted, the preview controls function properly as wellNaturally - in those situations you are running the native preview, rather than the ReportPreview.App VFP form version...
- Colin