Inserting tekst and loadFromStream
Posted: Mon Jul 27, 2015 2:54 pm
Hi Sergey,
I've been trying to insert a line at the start of a document and loading a document from stream,
But the line at the start doesn’t show in de editor?
Am I doing something wrong?
I hope someone can point me in the right direction
Thanks in advance,
Robert
I've been trying to insert a line at the start of a document and loading a document from stream,
But the line at the start doesn’t show in de editor?
Code: Select all
stream:=TMemoryStream.Create;
//nu de tekst inlezen...
if QTekst['tekst']<>'' then
begin
stream.Clear;
TBlobField(QTekst.FieldByName('Tekst')).SaveToStream(stream);
Stream.Position:=0;
RichViewEdit1.clear;
RichViewEdit1.Add('Hello World',0);
RichViewEdit1.LoadFromStream(stream, rvynaAuto);
//nu de handtekening nog...
LoadSig(false);
end;
Stream.Free;
I hope someone can point me in the right direction
Thanks in advance,
Robert