Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report Preview with listener force to close
Message
De
21/12/2005 15:38:56
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01079963
Message ID:
01080001
Vues:
14
Juan
to use a reportlistener object and a preview window do as follows
SET REPORTBEHAVIOR 90

IF TYPE("oReportListener") = "O"
   DO CASE
      CASE oReportListener.ListenerType = 1  && this means a preview window

           * oVP - creo y seteo el objeto Preview
           oVP = NULL
           DO (_REPORTPREVIEW) with oVP 

           * set initial properties of the preview window:
           WITH oVP
                .caption = "My preview window"
                .ToolbarIsVisible = .T.          && with toolbar
           ENDWITH

           * Assign our Preview container to the listener:
           oReportListener.PreviewContainer = oVP
   ENDCASE
ENDIF

REPORT FORM MyReport OBJECT oReportListener
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform