I create the paragraphs like this:
if not Assigned(WorkingPar) then
WorkingPar := Block.FirstPar
else
begin
WorkingPar.NextPar := TParagraph.Create(Block);
WorkingPar := WorkingPar.NextPar;
end;
WorkingPar.ParagraphType := wpIsXMLTopLevel;
WorkingPar.ASet(WPAT_ParProtected, 1);
WorkingPar.Name := '-1';
WorkingPar.ASet(WPAT_CharFontSize, 1000);
WorkingPar.SetText('Miscellaneous and Diagnosis', AttrIndex);
if FieldByName('RichText').AsString <> '' then
WorkingPar.LoadFromString(FieldByName('RichText').AsString,'AUTO', '', [wploadpar_AsChildrenPar])
else
begin
WorkingPar.ChildPar := TParagraph.Create(block);
WorkingPar.ChildPar.SetText(' ', DefaultAttr);
end;
I have the following ProtectedProp setting:
[ppParProtected,ppCheckAllText,ppNoNewParagraphsInEditFields,ppProtected,ppIsMergedText,ppProtectSelectedTextToo,ppNoEditAfterProtection]
If I understand correctly, the protected text is not "field".
Tony