oRepForm=CREATEOBJECT("Form")WITHoRepForm.Caption="MyreportTitle".WindowState=2**Thiswillmaximizetheform.Show()ENDWITHREPORTFORMmyReport.frxPREVIEWWINDOW(oRepForm.Name)oRepForm.Release()临岩听雨(252180511)10:08:06请需要的,及时记录代码!Setfocus()(54999013)10:11:22预览在表单中可以