Split table in rich text field
Posted: Tue Jan 22, 2019 12:32 pm
When there is a table in rich text, the split repeats the row on the other page, as shown in the image.
I am using a rich text field with all the information.
this is code:

I am using a rich text field with all the information.
this is code:
Code: Select all
StiReport report = new StiReport();
report.Load(@"e:\temp\Report.mrt");
StreamReader reader = new StreamReader(@"e:\temp\tabela1.rtf");
string str = reader.ReadToEnd();
reader.Close();
var richtext = (report.GetComponentByName("Texto1") as StiRichText);
var page1 = (report.GetComponentByName("Page1") as StiPage);
richtext.SetText(System.Xml.XmlConvert.EncodeName(StiRichText.PackRtf(str)));
report.Show();
