Define a Specified Character for an image on Export as Text

General TRichView support forum. Please post your questions here
Post Reply
viperpix
Posts: 39
Joined: Sat Jan 15, 2011 9:38 am

Define a Specified Character for an image on Export as Text

Post by viperpix »

How can i set a specify character to be identified as an image when i want to save the content of the RVE as Text in Stream?

for example chr(200) in place of each Picture in the RVE on resulting Plain Text.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Use OnSaveItemToFile event.
If you need an example, let me know.
viperpix
Posts: 39
Joined: Sat Jan 15, 2011 9:38 am

..

Post by viperpix »

yes of curse but i dont wanna save the thext in a file, at least i can save it to stream...
viperpix
Posts: 39
Joined: Sat Jan 15, 2011 9:38 am

..

Post by viperpix »

for example when using this kinda code:
rve.selectall;
s:=rve.getseltext;

i want to see the replaced character instead of pictures in resulting S
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Unfortunately, the current version of TRichView does not save non-text objects to text when copying the Clipboard (it calls SaveTextToStream with the parameter TextOnly=True)...
viperpix
Posts: 39
Joined: Sat Jan 15, 2011 9:38 am

..

Post by viperpix »

thanks btw sergey.
Post Reply