Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RTF Text in Report
Message
De
21/04/2002 15:55:25
 
 
À
21/04/2002 03:44:22
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00647223
Message ID:
00647387
Vues:
11
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform