General information
Category:
Reports & Report designer
>>>>>>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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only