Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximize Preview
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00513134
Message ID:
00514200
Vues:
33
>>Does anyone know of a way to have the report preview open maximised?
>>TIA,
>>Eylon
>
>Cetin's response is a good way to do it. Here is the method code that I use to accomplish report preview. The special thing I do is shut off the closing of the VFP app (top right X) as my users who were not very mouse proficient were closing the VFP app reather than the preview window. So while the preview is open the VFP app ControlBox is not shown. Once the user closes the preview then the VFP app ControlBox returns.
>
>
>LPARAMETERS tcReportName, tcReportTitle
>
>LOCAL loForm
>_SCREEN.CONTROLBOX = .F.
>loForm = CREATEOBJECT("Form")
>WITH loForm
>  .WINDOWSTATE = 1
>  .CAPTION = tcReportTitle
>  .MINBUTTON = .F.
>  .MAXBUTTON = .T.
>  .CLOSABLE = .T.
>  .MOVABLE = .T.
>  .HALFHEIGHTCAPTION = .T.
>  .BORDERSTYLE = 3
>  .SCROLLBARS = 3
>  .BACKCOLOR = RGB(255,255,255)
>ENDWITH
>lcFormName = loForm.Name
>KEYBOARD '{CTRL+F10}'
>REPORT FORM &tcReportName PREV WINDOW &lcFormName
>_SCREEN.CONTROLBOX = .T.
>
>RELEASE loForm
Thanks to you and Cetin. However - Is very no way to directly manipulate the report screen? That would
seem to me much more elegant!
Eylon
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform