I have a project where a mergefield retrieves a table built within another WPRichText.
Contents.StringValue := WPRichText2.AsString;
It works great, even when MergeText is called repeatedly. However, after saving and then reloading the text to/from a stream, the insertion points are messed up, causing the table to show twice.
yes, this is a solution for now. There is bug, it looses the closing insretpoint unless there is a character or paragraph before it. The field should not end with a table.
Any news on this topic? I'm having this same problem with tables before the closing insertpoint and saving as WPTools is not a option to me. I save as rtf.
I'm using WPTools 5.43 by the way.
please locate this code in WPIOREadRTF.PAS and insert the marked line
if FCurrentParagraph.ParagraphType = wpIsTable then
begin
NewParagraph();
FLastWasSTDPar := false;
TableVar[TableDepth].FInsideTable := FALSE;//<---
end;