Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preview not working - As Top Level Form
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
00990918
Message ID:
00991007
Views:
20
Dale -

I have a form with a report on it. The report is a top level form. I want to control the output of the report, but for some reason everything I try fails. I have tried to follow VFP9 sample, but it is not a top level form. Has anyone tried this on a top level form and what might I be missing.

I tried your code, with a couple of extra statements:
loPreview = null
do (_ReportPreview) with loPreview

loPreview.Width = _screen.Width - 30
loPreview.topform = .T.

loListener = createobject("reportlistener")
loListener.OutputType = 1
loListener.ListenerType = 1
loListener.PreviewContainer = loPreview

report form (_SAMPLES + "\Solution\Reports\invoice.frx") object loListener
This seemed to work for me. Can you describe what you are seeing that does not seem correct to you?

- Colin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform