Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print Preview Doesn't Work!
Message
De
09/09/1999 16:27:56
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:
00263139
Vues:
68
Well, George... the good news is I got the print preview to work EXACTLY as I wanted!!!! The bad news is that it took the silliest workaround code I've ever had to use..... Maybe if I recapped, you might have some insights as to WHY I needed to do what I did....:

1. put SCREEN=OFF in CONFIG.FPW. Then setup code invokes my form:

do form initscr.scx
read events

2. user selects report, clicks on "Preview". Preview window appears maximized using the following code...:

oPreviewFrm=CreateObject("PreviewForm")
THISFORM.WindowState=2 && make "Report Designer..." window maximized
THISFORM.TitleBar=0 && turn off to avoid ugly double title bar problem
report form "trade activity.frx" environment for record_id='1';
noconsole preview in window (oPreviewFrm.Name)
THISFORM.TitleBar=1 && turn back ON title bar
THISFORM.Height=390 && restore original window size; otherwise app window
THISFORM.Width=620 && will be FULL SCREEN
THISFORM.AutoCenter=.T. && otherwise, app window appears in top left of display

3. user closes report designer/print preview window; my app's window is restored centered on the display as desired.

4. If you recall, the "PreviewForm" class was an empty form in the class library viewform.vcx that you originally pointed me to.

Any thoughts on why I needed to resort to this?? Maybe my code and comments will bring to light something wrong with my original form design?? Thanks again so much for your help!!!..... Rich
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform