I'm just experimenting with numbering lists and paragraph borders on RTF files.
On this I have two problems.
1. Create numbering:
- wished result: a list with right aligned numbers and a border around the whole line incl. the numbers
- coding (excerpt):
Code: Select all
ListStyle := TRVListInfo.Create(nil);
with ListStyle.Levels.Add do begin // only one level required
ListType := rvlstDecimal;
Font.Name := 'Arial';
Font.Size := 10;
Font.Style := [fsBold];
FirstIndent := 0;
LeftIndent := 24;
MarkerIndent := 18;
MarkerAlignment := rvmaRight;
FormatString := '%0:s';
end;
The silly thing on this is that right after formatting the result looks like it should but after saving/reloading the document looks as expected anymore.
2. Paragraph borders
- wished result: each line should have a border (simulating a table as numbering over several cells are not possible)
- formatting: each line formatted by "paragraph borders and backgrounds" with a border
- result: reloading the RTF document in ScaleRichView shows the correct result but on opening the file with a.e. MSWord the single paragraphs are merged as one and the border is drawn only around the whole block.
I hope you have a solution for my problems.