Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hide the report designer window
Message
De
24/02/2006 13:35:02
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01098752
Message ID:
01099003
Vues:
20
Hey Geoff, how is the old country?

How do I hide the report designer form so my report appears in just one window (which is a maximised top level form)?

I'm not sure I understand. What commands are you using now to run the report? The Report *Designer* window should not appear if you are doing a REPORT FORM... PREVIEW (i.e. normal runtime, display a report kind of thing).

If you just want to have the report preview be an independent top form, you can force the preview to display in a topform like this:
pc = null
do (_reportpreview) with m.pc
pc.TopForm = .T.
rl = newobject("ReportListener")
rl.ListenerType = 1
rl.PreviewContainer = m.pc
REPORT FORM {my report} OBJECT m.rl
There is nothing preventing you from making custom behavior the default behavior by using a wrapper as _REPORTPREVIEW. Create MYPROGRAM.PRG like this:
LPARAMETER x
DO HOME() + "ReportPreview.App" WITH x
x.Caption = "My Application Report Preview"
x.AllowPrintFromPreview = .F.
x.CanvasCount = 2
x.ZoomLevel = 3
x.TopForm = .T.
RETURN
Now, in your application:
_REPORTPREVIEW = "myprogram.prg"
SET REPORTBEHAVIOR 90
:
Customise to suit your preferences, and you're good to go.

But please clarify your question, I'm not sure that this is what you are asking for.

- Colin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform