Page 1 of 1

Define a Specified Character for an image on Export as Text

Posted: Sun May 22, 2011 8:11 am
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.

Posted: Sun May 22, 2011 7:49 pm
by Sergey Tkachenko
Use OnSaveItemToFile event.
If you need an example, let me know.

..

Posted: Mon May 23, 2011 4:20 am
by viperpix
yes of curse but i dont wanna save the thext in a file, at least i can save it to stream...

..

Posted: Mon May 23, 2011 6:18 am
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

Posted: Mon May 23, 2011 5:25 pm
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)...

..

Posted: Tue May 24, 2011 4:47 am
by viperpix
thanks btw sergey.