>I generate the rtf with ActiveX control
>it is stored to a var.
>the report contains a general fiel bound to "curTemp.oRTF"
>This text is needed only once in the report so I do
>...
>lcFile = SYS(2015)
>STRTOFILE(lcRTFText,lcFile)
>Create Cursor curTemp (oRTF G)
>append blank
>append general oRTF FROM (lcFile)
>DELETE FILE (lcFile)
>SELECT curReportSource
>Report form ...
>SELECT curTemp
>USE
Ok, the append general from, assumes than your file is a bitmap (that's what I supose), if it can´t determine the type of data the file contains.
Has I tell you before, I have done this with Graphs, and this is the code I use:
If Reccount() = 0
Append Blank
Append General GRAPH class "msgraph.chart" data cDatos
Else
If Empty(MVGRAPH.GRAPH)
Append General GRAPH class "msgraph.chart" data cDatos
Else
Append General GRAPH data cDatos
EndIf
EndIf
Has I know the strtofile create a ascii text file, and isn't needed I think.
maybe the class for rtf is RTF or msrtf or the class of your rtf control
and the code become some like this:
Create Cursor curTemp (oRTF G)
append blank
append general oRTF CLASS "rtf" data lcRTFText
SELECT curReportSource
Report form ...
Use In curTemp
Hope this help
Mauricio
Be fast like the Fox
Be free like the Penguin
Se Rápido como el Zorro
Se libre como el Pingüino