Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
General Field
Message
De
21/12/1999 16:46:37
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
21/12/1999 16:40:01
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00306844
Message ID:
00306972
Vues:
36
>Cetin,
>
>What am I doing wrong? When I run this code it puts a txt icon in the general field and on the report.


Steve,
I guess it's a memo field and what you see is the same as what you would if an RTF coded file is opened in a simple text editor :
\font\blah blah

First you should get it into a general field. To test add a field named olegen to your table. Add RTF control and a commandbutton and in click of commandbutton put this code (changing necessary obj.names) :
* Suppose tablename is rtftest and fields Source(memo), Olegen (general)
* Actually my test file was a copy of 
* VFP solutions sample with Olegen field added
with ThisForm.Olecontrol1
	.TextRtf = rtftest.source
	.refresh
	.SaveFile("mytest.rtf")
endwith
append general olegen from ("mytest.rtf")
Now create a report and insert an olebound control with field = rtftest.olegen.
Cetin

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform