Problems with tables that I import as part of an RTF documet
Problems with tables that I import as part of an RTF documet
When I import tables that are parts of RTF documents I lose vertical alignment of text. What is the reason and how can I solve this problem?! Help me! I use Delphi.
And can I in such a way make the second row text verticle in my table after import:
procedure TfrmMain.N1Click(Sender: TObject);
var
i, ItemNo, ParaNo: Integer;
table: TRVTableItemInfo;
begin
try
ItemNo := RichViewEdit1.ItemCount;
for i:=0 to ItemNo-1 do
if RichViewEdit1.GetItemStyle(i)=rvsTable then
begin
ParaNo := i;
system.break;
end;
table := TRVTableItemInfo(RichEdit.GetItem(ParaNo));
table.SetRowVAlign(rvcBottom, 1);
RichViewEdit1.Change;
end;
procedure TfrmMain.N1Click(Sender: TObject);
var
i, ItemNo, ParaNo: Integer;
table: TRVTableItemInfo;
begin
try
ItemNo := RichViewEdit1.ItemCount;
for i:=0 to ItemNo-1 do
if RichViewEdit1.GetItemStyle(i)=rvsTable then
begin
ParaNo := i;
system.break;
end;
table := TRVTableItemInfo(RichEdit.GetItem(ParaNo));
table.SetRowVAlign(rvcBottom, 1);
RichViewEdit1.Change;
end;
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: