Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report in form
Message
From
27/09/2011 09:33:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Report in form
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01524835
Message ID:
01524835
Views:
100
Hello,

When running a report in a form (using the report listener) I can make it work only when I create a top level form.
THISFORM.ExtensionHandler = NEWOBJECT("ExtensionHndl","Reportsgen_Preview")
*
loPreviewContainer = NULL
*
DO Reportpreview.App WITH loPreviewContainer
*
*-- Assign the extension handler to the preview container.
loPreviewContainer.SetExtensionHandler(THISFORM.ExtensionHandler)
*
*-- Create a standard report listener.
THISFORM.ReportListener = CREATEOBJECT("ReportListener")
THISFORM.ReportListener.ListenerType = 1
THISFORM.ReportListener.PreviewContainer = loPreviewContainer
*
REPORT FORM (THISFORM.ReportFilename) TO PRINTER PROMPT OBJECT THISFORM.ReportListener NOWAIT NOCONSOLE
When I make the form ShowWindow = 0 or Intoplevel form, the report shows outside of the form. Isn't there a way to make that work also in a normal form, or must it be a top level form?
Christian Isberner
Software Consultant
Next
Reply
Map
View

Click here to load this message in the networking platform