Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preview with reportlistener
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01134077
Message ID:
01134111
Vues:
21
This message has been marked as the solution to the initial question of the thread.
>Any ideas guys how to force / default the Preview (Listener type 1) to FULLSCEEN?
LOCAL loPreviewContainer, loReportListener
      
*-- Create the preview container
DO (_REPORTPREVIEW) WITH loPreviewContainer

*-- Change some of the defaults
loPreviewContainer.Caption = 'My Special Report'
loPreviewContainer.ZoomLevel = 5 && 100%
loPreviewContainer.ToolbarIsVisible = .t.

*-- Create the Report Listener
loReportListener = CREATEOBJECT('ReportListener')
loReportListener.ListenerType = 1 && Preview

*-- Assign the preview container to the listener
loReportListener.PreviewContainer = loPreviewContainer

*-- Run the report (with NOWAIT)
REPORT FORM MySpecialReport OBJECT loReportListener NOWAIT

*-- Change some more preview container properties 
loPreviewContainer.oForm.Toolbar.Dock(0) && Dock toolbar at the top
loPreviewContainer.oForm.WindowState = 2 && Maximize preview
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform