>>report form report1 preview >>>>
>oForm = CREATEOBJECT("Form") >oForm.Name = "PrintPreview" >oForm.WindowState = 2 && Maximised >oForm.Visible = .t. >wnd_name = oForm.Name >REPORT FORM Report1 NOCONSOLE TO PRINTER PROMPT PREVIEW WINDOW (wnd_name) >oForm = NULL >RELEASE oForm, wnd_name >Does not help when trying to close the application using Exit button from the main toolbar. I guess, I can make that form Modal, but then you would not be able to close the form. I want to be able to close the application if the report preview window is opened.