Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ReportPreview from a Top Level form
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
ReportPreview from a Top Level form
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00973517
Message ID:
00973517
Views:
56
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
Map
View

Click here to load this message in the networking platform