AFAIK, the the XFCont class is the old version of Previewer. You should use new one.
>Okay, I'm not sure I'm doing this right. But here is what I did:
>
>I created a model form, added the XFCont class to it. In the form I have a method called LoadReport which I call from the show:
>
>
>local loSession, lnRetval
>loSession= xfrx("XFRX#INIT")
>lnRetVal = loSession.SetParams(,,,,,,"CNT")
>If lnRetVal = 0
> * * we are assuming the XFCont container is * available as thisform.cntXFRX *
> thisform.cntXFRX.reset()
> loSession.setotherparams(thisform.cntXFRX)
> loSession.ProcessReport("test")
> loSession.finalize()
>ENDIF
>RELEASE loSession
>
>
>This loads the test report into the previewer, and all that works, but I lose control of the form. I have a quit button on the form with thisform.release in the click method. If I don't call the LoadReport, the form works as expected (but no report in the preview), but once the report is loaded, the Quit button doesn't do anything, and unexpectedly (since it was a model form), I have access to the Command window and doing a Clear All release the form.
>
>Any hints?
>
>Kirk
--sb--