Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report in form
Message
 
 
To
27/09/2011 09:33:45
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
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:
01525039
Views:
67
See if http://www.berezniker.com/content/pages/visual-foxpro/vfp-90-report-writer can help

>
>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?
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform