Forgot something: by using a non-visible form object I am trying to mimic the behavior of a session class (that's how we did it before session came along < g >). So actually you need to create a form class somewhere - either in another VCX or in a prg - that has a private datasession (datasession=2). Here's how it could be done in code:
create a prg called privatesession:
DEFINE CLASS PrivateDataSession AS FORM
DataSession = 2 && Private Datasession
ENDDEFINE
Then change
F2W_oSession=newobject("Session")
to
(if vfp 6 or later)
F2W_oSession=newobject("PrivateDataSession","privatesession.prg")
OR
(if vfp 5 or earlier)
SET PROC TO PRIVATESESSION.PRG ADDITIVE
F2W_oSession=createobject("PrivateDataSession")
in the ReportForm method.
>Are there some way of sending vfp report output to a Word document. I tried the frx2word class from UT files, but I'm getting a error (Definition class SESSION not found).
>
>
>I'd like to know if there are other ways of doing this.
>
>
>Thanks