>Does anyone know of a way to have the report preview open maximised?
>TIA,
>Eylon
Cetin's response is a good way to do it. Here is the method code that I use to accomplish report preview. The special thing I do is shut off the closing of the VFP app (top right X) as my users who were not very mouse proficient were closing the VFP app reather than the preview window. So while the preview is open the VFP app ControlBox is not shown. Once the user closes the preview then the VFP app ControlBox returns.
LPARAMETERS tcReportName, tcReportTitle
LOCAL loForm
_SCREEN.CONTROLBOX = .F.
loForm = CREATEOBJECT("Form")
WITH loForm
.WINDOWSTATE = 1
.CAPTION = tcReportTitle
.MINBUTTON = .F.
.MAXBUTTON = .T.
.CLOSABLE = .T.
.MOVABLE = .T.
.HALFHEIGHTCAPTION = .T.
.BORDERSTYLE = 3
.SCROLLBARS = 3
.BACKCOLOR = RGB(255,255,255)
ENDWITH
lcFormName = loForm.Name
KEYBOARD '{CTRL+F10}'
REPORT FORM &tcReportName PREV WINDOW &lcFormName
_SCREEN.CONTROLBOX = .T.
RELEASE loForm
Bret Hobbs
"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope