TRY PUBLIC loForm loForm = CREATEOBJECT('myForm') loForm.Show() loForm.RunReport() READ EVENTS CATCH TO oException ENDTRY DEFINE CLASS myForm as Form ShowWindow = 2 &&as top level form WindowState = 2 && Maximized PROCEDURE RunReport() SET REPORTBEHAVIOR 90 loListener = CREATEOBJECT('ReportListener') loListener.ListenerType = 1 pc = null DO (_reportpreview) WITH pc pc.TopForm = .T. loListener.PreviewContainer = pc REPORT FORM HOME(1) + "Tools\Filespec\60SCX1.frx" OBJECT loListener *MESSAGEBOX('test') ENDPROC PROCEDURE destroy CLEAR EVENTS ENDPROC ENDDEFINEThe report preview is created inside of "MyForm" - which it shouldn't if it is supposed to be a separate top level form.