Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
General Field
Message
From
21/12/1999 16:46:37
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
21/12/1999 16:40:01
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00306844
Message ID:
00306972
Views:
37
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform