Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to dock Print Preview toolbar?
Message
De
01/09/1998 06:34:02
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00131663
Message ID:
00131835
Vues:
22
>>
>>Thanks for the fast response. I tried your idea with little success. Maybe you could look at the following and tell me where I am going wrong:
>>
>> KEYBOARD "{CTRL+F10}"
>> loReportForm = CREATEOBJECT('Form')
>> loReportForm.Name = 'ReportForm'
>> loReportForm.Caption = "Asset Depreciation Short Report"
>> REPORT FORM Report02a PREVIEW WINDOW ReportForm
>> IF wexist("Print Preview")
>> MOVE WINDOW 'Print Preview' TO 10,10
>> MOUSE DBLCLICK AT 11,11
>> ENDIF
>>
>
>REPORT FORM ... puts the system in a wait state (waiting for you to close the report window). When the report form is closed, the preview toolbar is gone, and so it does not work.
>
>You can either:
>
>1. REPORT FORM .. PREVIEW .. NOWAIT. This will not cause a wait state and the code should run. The problem this will cause is that since you are no longer in a wait state, code keeps running: something that you probably dont want (given the fact that you arent asking "Why do I always have to stop execution when previewing a report <g>).
>
>2. Try putting the IF WEXIST(... code into the OnEntry of the Title Band of the report.
>
>3. Provide the user with a readonly resource file that has the toolbar already docked. This causes the least visual "jumping" effect

By the way,

you can use RELEASE WINDOW 'Print Preview' too (or DEACTIVATE, I'm not sure). See the Tasmanian Traders sample. You don't have to check if the toolbar is visible then either, because RELEASE doesn't give an error if there is no window/toolbar.

Marc Van Riet
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform