Table alignment lost

General TRichView support forum. Please post your questions here
Post Reply
Rogerio
Posts: 2
Joined: Thu Feb 03, 2011 4:54 pm

Table alignment lost

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

1. Do you load RTF documents?
2. What version of TRichView?
Rogerio
Posts: 2
Joined: Thu Feb 03, 2011 4:54 pm

Post 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]
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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)
Post Reply