>Is it possible when i use report form ... preview noconsole to obtain that VFP previews the report in a maximised screen.
>
>Because with the command above the preview is in a reduce screen.
>
>i do not want to utilize the option preview in window, is there an other solution
>
If you are using a resource file (FOXUSER) you can save the maximized status for a form preview in the PREFW/REPORTPOS record for each report - simply have FOXUSER set up, do a REPORT FORM xxx PREVIEW, maximize the Preview and exit. The Maximized preview setting will be saved for the form in the Resource File record for that report form (the data field involved, Data, is a memo field with binary data in it, so I don't know the exact sequence to store programmatically. The record involved will have TYPE = "PREFW", ID='REPORTPOS', and NAME = "
report form name.frx") By sending out the FOXUSER files and installing them on each workstation, you can set this option on a form by form basis. You can preserve the setting either by having the FOXUSER resource files marked as read-only, or by setting the ReadOnly field of the PREFW/REPORTPOS record as .T.
You could also try stuffing a {Ctrl-F10} using KEYBOARD or the SendKeys method of the Wscript.Shell automation object to maximize the Preview, but this won't bring up the Preview pre-maximized.