That's what I did. It is a PITA, but the program is for my use only, so it'll do.
Thanks,
Michelle
>Help for 5.0 shows this syntax:
>
>
REPORT FORM FileName1 | ?
>...snip
> [PREVIEW [WINDOW WindowName]
>...snip
>
>
>For 6 it is:
><pre>REPORT FORM FileName1 | ?
>...snip
> [PREVIEW [[IN] WINDOW WindowName | IN SCREEN]
>...snip
>
>In 5.0 you
have to show the _screen in order for a report preview to show. I had a routine that did this, then the preview, then rehid the screen. PIA kludge. I'm glad it's changed in 6.0.
>
>HTH
>
>>>* After the SET CLASSLIB command
>>>oPreviewFrm = CREATEOBJECT("PreviewForm")
>>>REPORT FORM < report filename > NOCONSOLE PREVIEW IN WINDOW (oPreviewFrm.Name)
>>>hth,
>>
>>I tried this, replacing the names where appropriate, and the REPORT FORM line gives me an error of unrecognized command or keyword.