hello
Im trying to print a rtf in a table cell with all format. Im really a beginner.
using this code:
FlowDocument myfl = new FlowDocument();
TextRange trvb = new TextRange(myfl.ContentStart, myfl.ContentEnd);
MemoryStream ms = GetMemoryStreamFromString(rtf);
trvb.Load(ms, DataFormats.Rtf);
TextRange tcr = new TextRange(myfl.ContentStart, myfl.ContentEnd);
MemoryStream streamx = new MemoryStream();
tcr.Save(streamx, DataFormats.Xaml);
copyDocumentRangex = new TextRange(myFlowDocument.ContentEnd, myFlowDocument.ContentEnd);
copyDocumentRangex.Load(streamx, DataFormats.Xaml);
into this table cell by the xxxx
table2s.RowGroups[0].Rows.Add(new TableRow());
currentRow2s = table2s.RowGroups[0].Rows[js + 4];
currentRow2s.Cells.Add(new TableCell(new Paragraph(xxxxx)));
thankyou in advance for any code alter this please.