Very odd... the toc1 tag gets lost when using AppendAsSection:
If I look at WPRichText1.AsString just before the AppendAsSection, the toc1 tag from an earlier ASet(WPAT_ParIsOutline,1) is there, but if I look at the resulting WPRichText_Rpt.AsString, the toc1 is not there.
Any idea what might have happened to it???? Does it not get copied?
The first couple of my TOC entries were missing until I removed the wptocUseParIsOutline flag in the createTableOfContents call... that's when I noticed that it was the ones after the AppendAsSection.
WPTools 5.20.5
Delphi 7