Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report in form
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01524835
Message ID:
01525039
Vues:
68
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform