Page 1 of 1

Table alignment lost

Posted: Thu Feb 03, 2011 5:36 pm
by Rogerio
Oi People!

I am loading a document into the Richviewedit. This document has three tables with diferentes alignment: one in the center, other on the left and the last on the right. When the document is showed, all tables appear aligned on the left. What do I need to do to solver this problem?

Sorry my pauper English.

Posted: Thu Feb 03, 2011 7:01 pm
by Sergey Tkachenko
1. Do you load RTF documents?
2. What version of TRichView?

Posted: Fri Feb 04, 2011 11:11 am
by Rogerio
Hi Sergey,

I load RTF documents with the follow code:

Code: Select all

procedure TItemEditTexts.SetConteudo(value : TStringList);
Var
 St: TStream;
begin
 St := TMemoryStream.Create;
 // mm is a TRichViewEdit 
 try
   value.SaveToStream(St);
   St.Seek(0,soBeginning);
   mm.LoadFromStream(St, rvynaAuto);
   mm.FormatTail;
   mm.Format;
 finally
   St.Free;
 end;
end;

I am using the version 1.9.48.
[/img]

Posted: Fri Feb 04, 2011 3:37 pm
by Sergey Tkachenko
Old version of TRichView did not support loading table alignment from RTF.
It is implemented in newer version.
Please upgrade (send me a private message with information about your order, for example email address that was used in it, and I'll give you a download link for new version)