Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odd Preview Window Behavior
Message
From
25/05/2005 15:12:46
 
 
To
25/05/2005 14:26:15
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01017308
Message ID:
01017626
Views:
20
This message has been marked as the solution to the initial question of the thread.
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()

*	SET REPORTBEHAVIOR 90
	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	
*	REPORT FORM HOME(1) + "Tools\Filespec\60SCX1.frx" PREVIEW

ENDPROC 
if you set report behavior to 80, or run in VFP 8 with the set report omitted, the preview controls function properly as well

Naturally - in those situations you are running the native preview, rather than the ReportPreview.App VFP form version...

- Colin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform