Information générale
Catégorie:
Gestionnaire de rapports & Rapports
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement