Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making a texteditor in vfp
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00941073
Message ID:
00941079
Views:
14
>Hi all,
>
>I have a file with a memo field. This field conteins the layout of a letter that the user can print or modify and send to a customer. There are also some fields in the file that are replace with the right field value when the letter is printed or edited. These fields are store like this : '2 times smaller then ' fieldname '2 times biggerthen '.
>
>This letter once printed isn't saved. So the only thing my program is doing is replace the fields with the right value and edited on the screen. The user can modify some text or layout and then the letter is printed.
>
>Now my user want's to use underline, bold,... in his letter. What 's the best way to make an editor in vfp knowing my layout info is stored in a memofield and that i need to replace some '2 times smallerthen ' fieldname '2 times biggerthen ' with the right value?
>
>thnx !
>
>ps this user is working on a win98 platform. I've tried to work with
>CREATEOBJECT(Word.Application)
>but this isn't working out the right way on the computer of my customer. It takes 2 much time to prepare the document and sometimes i get a windows error


There is a 'RTF' (Rich Text Format) control that you can use.

You will find an example of how to use it in the sample solution project that ships with VFP. You can find it here:

Default Catalog: Visual FoxPro Catalog\Foundation Classes\Text Formatting
Class: _rtfcontrols
Base Class: Container
Class Library: _format.vcx
Parent Class: _container
Sample: ...\Samples\Solution\Toolbars\format.scx
ICQ 10556 (ya), 254117
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform