Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ReportPreview from a Top Level form
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
ReportPreview from a Top Level form
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00973517
Message ID:
00973517
Vues:
57
I have a top level form which previews a report, with VFP 8 I use the
REPORT FORM x NOCONSOLE PREVIEW IN SCREEN

I've converted this into VFP 9 with the new ReportPreview and ReportListener objects, but I can't seem to get the same results, it always seems to preview in the Top-Level form, code used:

DO (_ReportPreview) WITH loRepPreview
WITH loRepPreview
.Caption = "Report Preview"
.TopForm = .T.
ENDWITH
loRepListener = NEWOBJECT('ReportListener')
loRepListener.ListenerType = 1
loRepListener.PreviewContainer = loRepPreview
REPORT FORM (lcPath + lcReport) NOCONSOLE OBJECT loRepListener

I've set the SET REPORTBEHAVIOUR 90, this makes all the existing reports use the new preview, but I would like to have these displayed in there own top-level form, I'm missing something, but can't put my finger on it yet.

Any help would be appreciated.

Thanks
Simon.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform