Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print Preview Doesn't Work!
Message
 
À
13/09/1999 10:43:12
Rich Lieblich
Infosys Technologies, Inc.
Fanwood, New Jersey, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00257606
Message ID:
00264138
Vues:
78
>Hi George,
>
>Still a bit confused about what you are asking. My main form - the one that calls the print preview form - definitely has its ShowWindow property set to '2'- As Top-Level Form. Also, there is no code that sets properties of the print preview form (such as the oPreviewForm.WindowState=2 you mentioned in a preview post); all its properties were set in the Class Designer....
>
>When I comment out my 'fudge code', the preview form appears inside my main form. Maybe we are getting hung up my the DESIRED BEHAVIOR I want... which is to display the preview form as:
>-maximized
>-full screen
>-single title bar
>
>The reason I mention this is that in some post, you mentioned something like "you can't get around the two title bars until the preview window is MAXIMIZED". Maybe this is the point we are hung up on? My fudge code is simply to get the desired look I want AUTOMATICALLY without the *user* having maximize the preview window and then restore the main window size afterwards....
>
>Regards.... Rich

I don't think you're going to be able to get to that point. What's being done is that the preview window will appear inside the specified form as a separate window. Because top-level forms have title bars, there's no way around having the double title bars appear, at least until the user maximizes the preview window. At that point, only a single title bar will appear. The only soltion that I can think of would be to know exactly what the preview form's title bar would be. Then, by adding NOWAIT to REPORT FORM... command, use Foxtools to get the whandle of the window. Then, using this value, call _WZoom() in Foxtools. Personally, I don't like using NOWAIT, however.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform