public Rep_Preview Rep_Preview = createobject( "form" ) With Rep_Preview .Caption = "Report Preview" && or any caption you want .Closable = .F. .ControlBox = .F. .MaxButton = .F. .MinButton = .F. .Name = "My_Preview" && This is the key to the preview .WindowState = 2 && maximized property setting .Visible = .F. EndWithThen when you are ready to actually run the report do the following
Rep_Preview.Visible = .T. report form <your report> noconsole preview window "My_Preview" Rep_Preview.Visible = .F.I have found this to work great.