Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RTF Control for Word Processing?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00600542
Message ID:
00601326
Vues:
20
>>>Is there a good control that would allow the display and edit of features such as bolding / underlining / font sizing so that a word processed document could be stored in a memo field? I assume it would be storing rich text format (RTF).
>>
>>I use an rtf formatted file but access it with WordPad, which eliminates having to make sure the proper RTF control is on the target PC. Everyone has WordPad, but not everyone has the same version of RTF control (dll, vcx, version incompatibilites, inability to install proper rtf control without rebuilding box,etc...)
>>
>
>I tried your solution and I saw two problems (or rather -it seems to me that it can drive an app user to problems ).
>1) OleBoundControls shows only WorPadDocument icon ( not content of file)

Mine shows content embedded in the page frame. This is because I have a general field in the supporting table, which I call 'WordDoc' and which is bound to the olecontrol. The text in that field shows in the olecontrol.

>2) doverb(0) method opens wordpad in another window

Mine opens in another window in the edit mode by choice. Besides saving text in the general field I also create an RTF file, which is what gets shown in the WordPad instance. Users can then print directly from the WordPad app or edit using the full power of WordPad. This avoids subclassing the RTF control and being responsible for the font, size, color and print controls in it.
When they close WordPad and focus returns to the page frame I make sure the changes are saved in the general field and to the RTF file. Users say they prefer it to the old RTF control. The first call to WordPad is slow, but suceeding calls are very quick.

>Is it the way it works for you or maybe I something missed ?
Nebraska Dept of Revenue
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform