LOCAL loMaxPreview loMaxPreview = CREATEOBJECT("tmrMaxPreview") lcReportCmd = "report form " + cReportName + " preview "Then the report is ran,
&lcReportCmd
RELEASE loMaxPreview
and at the bottom of the code,*05/18/2007 11:29:12- GLR ------------------------- * when the preview opens, maximize once. *-------------------------------------------------- DEFINE CLASS tmrMaxPreview as Timer Enabled = .t. Interval= 1000 PROCEDURE timer IF WEXIST("Report Designer") ZOOM WINDOW "Report Designer" max this.Enabled = .F. ENDIF ENDPROC ENDDEFINEPretty basic, I thought.