If you don't have an active resource file, use this code:
KEYBOARD '{CTRL+F10}'
REPORT FORM MyReport TO PRINTER PROMPT PREVIEW
If you have a resource file, you'll have to turn it off first or make sure it's read-only.
Another way to do this is put the following line of code in the INIT method of the Data Environment of the report:
ZOOM WINDOW "Report Designer" MAX
Cathy
>The code I am using to call the print preview is:
>
>_SCREEN = .T.
>Report form myreport preview noconsole
>_SCREEN = .F.
>
>After you told me the print preview couldn't do it, I found the _screen = .F. command. This must close the application or hide it, but I don't want that. I was trying to have the print preview default to the full screen. Could you tell me how to do that?
>
>Thanks for your help