General information
Title:
ReportPreview from a Top Level form
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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only