Load stream to <div>

General TRichView support forum. Please post your questions here
Post Reply
retwas
Posts: 39
Joined: Tue May 21, 2013 1:41 pm

Load stream to <div>

Post by retwas »

Hi,

I load a stream to a RichView:

Code: Select all

stream := TFileStream.Create(sCheminFichier, fmOpenRead);

try
	if not bTextOnly then
	rvDocument.InsertRVFFromStream(stream, rvDocument.ItemCount)
else
	LoadFichierDansRichViewTextOnly(rvDocument,stream);
finally
	stream.Free;	
end;
When you click on a button I need to change the previous text aded.

I would like to load my stream to a div

Code: Select all

<div id="my_stream"></div>
And then remove this div, how can I do that ?

Thanks
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Sorry, there are no analogs of div in TRichView.
If you want to mark a fragment, you can add a checkpoint to its begin and end.
Or you can use tags, for example, see Georeport demo: http://www.trichview.com/forums/viewtopic.php?t=8#13256
Post Reply