Information générale
Titre:
ReportPreview from a Top Level form
Versions des environnements
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement