Page 1 of 1

Load stream to <div>

Posted: Fri Mar 28, 2014 9:41 am
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

Posted: Mon Mar 31, 2014 1:25 pm
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