DOCXReadWrite accessing tables data
Posted: Fri Mar 05, 2021 7:45 am
Hello
When we alter a text inside a cell in table with plaintext command the formatting of the cell is lost.
Is it possible to have direct access in the text contents of a cell in a table and make changes on it without loosing the formatting of the cell?
e.g.
// Get the cell.
Cell := DOCX.Editor.Paras.Tables[0].Rows[1].Cells[2];
// Replace the text.
Cell.Paras.PlainText := 'Lorem ipsum dolor sit amet'; <-----
Also it would be nice to be able to insert table rows and not always append a new one.
Thanks in advance
When we alter a text inside a cell in table with plaintext command the formatting of the cell is lost.
Is it possible to have direct access in the text contents of a cell in a table and make changes on it without loosing the formatting of the cell?
e.g.
// Get the cell.
Cell := DOCX.Editor.Paras.Tables[0].Rows[1].Cells[2];
// Replace the text.
Cell.Paras.PlainText := 'Lorem ipsum dolor sit amet'; <-----
Also it would be nice to be able to insert table rows and not always append a new one.
Thanks in advance