>>Can you show your idea in more details? I was thinking, that perhaps you can originally set window position outside the screen, then the preview appears, re-set top and left coordinates of the window. But it's just a vague idea, I don't see a clear implementation yet.
>>>Thanks, it helped.
>>>
>>>Because we have serveral dozen reports, I used a slightly different approuch. If the output is a preview, a timer is created (interval = 1 sec). Then when the preview appears, it is maximized and the is stopped. This mazimizes it on openning but still allows the user to resize.
>
>When the user requests a preview,
>
> 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
> ENDDEFINE
>
>
>Pretty basic, I thought.
I see, interesting, thanks. I thought you combined in WINDOW idea with the timer.
If it's not broken, fix it until it is.
My Blog