I'm just evaluating TRichViewEdit and I have a problem with the 'Color' property of the table when copying the table as RTF via clipboard to Microsoft Word.
Here is my example code:
Code: Select all
Editor.Clear;
T1 := TRVTableItemInfo.CreateEx(1,2, Editor.RVData);
T1.Color := clGreen;
T1.Cells[0,0].Clear;
T1.Cells[0,0].Color := clLime;
T1.Cells[0,0].AddNL('H1', 0, 0);
T1.Cells[0,1].Clear;
T1.Cells[0,1].Color := clLime;
T1.Cells[0,1].AddNL('H2', 0, 0);
Editor.AddItem('', T1);
Editor.Format;
Editor.SelectAll;
Editor.CopyRTF;
When I paste the stuff in Microsoft Word then the darkgreen color is gone.
I can only see the lightgreen cells surrounded with a white border on white ground.
Any ideas?
Gary