I draw a table in a RVE, and want to hide the table and cells borders, then save to a rtf file. But the borders is still visible in rft file.
How can i hidden the borders in rtf file?
Thank you,
nong
The following is my code:
....
t := TRVTableItemInfo.CreateEx(10, 2, rveZZ.RVData);
t.Options :=[rvtoHideGridLines];
RichViewTableGridStyle := psClear;
t.BorderWidth := 0;
rveZZ.InsertItem('', t);
rs := TMemoryStream.Create;
rveZZ.Format;
rveZZ.SaveRTFToStream(rs,false);
rveZZ.SaveRTF('c:\abc.rtf',false);
rs.Free;
....
Hide Table and Cells Borders
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
To create a table without borders, assign
(if table grid lines are turned on in MS Word, it displays grid lines in place of borders, but they are not printed, and they can be turned off)
PS:
The line
t.Options :=[rvtoHideGridLines];
hides grid lines for this table. It does not affect neither borders not RTF output, it just instructs that the component should not draw grid lines for this specific table.
The line
RichViewTableGridStyle := psClear;
hides grid lines for all table. It does not affect neither borders not RTF output, it just instructs that the component should not draw grid lines for all tables.
Code: Select all
t.BorderWidth := 0
t.CellBorderWidth := 0;
PS:
The line
t.Options :=[rvtoHideGridLines];
hides grid lines for this table. It does not affect neither borders not RTF output, it just instructs that the component should not draw grid lines for this specific table.
The line
RichViewTableGridStyle := psClear;
hides grid lines for all table. It does not affect neither borders not RTF output, it just instructs that the component should not draw grid lines for all tables.
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: