Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximizing Print Preview - A challenge
Message
 
À
20/11/1997 11:28:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00061037
Message ID:
00061457
Vues:
39
>>>>>>I am using VFP 3.0 for Windows.
>>>>>>
>>>>>>I would like to ensure that the print preview window is maximized each time a user runs a report. Could anyone tell me how to do this?
>>>>>>
>>>>>>I have done a search and the solutions listed are for VFP 5.0 or they mention setting the window size in Foxuser.dbf (which is flawed because the user can reset this).
>>>>>
>>>>>I think I once made foxuser.dbf read-only in a 2.6 app for this same reason... to have a window open in a set way no matter it's state when last closed. You can't still do that in 3.0 Evan?
>>>>
>>>>Okay, I could make that read-only, but then I have to ensure the proper value is set to make the report maximized. I had a look in Foxuser.dbf and it didn't make much sense.
>>>>
>>>>I am worried about making the file read-only since I am unsure about what exactly it is used for.
>>>
>>>
>>>I don't know if this works in VFP 3.0 but it works in VFP 5.0
>>>
>>>Define window w_rpt FROM 0,0 TO SROWS(), SCOLS()
>>>REPORT FORM FileName1 PREVIEW WINDOW W_RPT
>>>
>>Chuck,
>>
>>Thanks, but that is 5.0 syntax.
>
>Hi,
>Not smart but works :
>keyboard "{Ctrl+F10}"
>report form anyreport preview nowait
>Cetin

Cetin,

You win the prize! The key was to use the keyboard buffer and to put "no wait" on the report statement. Without the "no wait" the buffer isn't used until after the report is exited.

I will buy you dinner if you are ever in Vancouver. Thank you very much.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform