Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Odd Preview Window Behavior
Message
De
25/05/2005 15:12:46
 
 
À
25/05/2005 14:26:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01017308
Message ID:
01017626
Vues:
22
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform