Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report in form
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Report in form
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:
01524835
Vues:
99
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform