Insert Fields?? Version 5

  • Under WpTools 4 the following worked fine:

    rtf1.ReplaceTokens('<<','>>');
    WPMMDataProvider1.AutoLoadData := TRUE;
    rtf1.HideInsertpoints := true;
    rtf1.FastMergeText;
    rtf1.Refresh;

    Now with WpTools5.08 I do the following:

    rtf1.ReplaceTokens('<<','>>');
    rtf1.InsertPointAttr.Hidden := true;
    WPMMDataProvider1.ReadData;

    Only the first field get inputted, the remaining fields are not affected and do not show the data.
    Spacing is not an issue.

    Please advise.

    Thanks

  • Set InsertPointAttr.Hidden to true

    All fields are not shown, in a sample 3 fields were included, the first field was read and shown correctly, the second field was skipped and the third field showed a partial field description and then the field data.

    In the rtf component, I have set up 3 fields as follows:
    <<fname>> <<mName>> <<lName>>

    here is the code:

    rtf1.ReplaceTokens('<<','>>');
    rtf1.InsertPointAttr.Hidden := true;
    rtf1.MergeText;

    The above works fine under wpTools4 other than the slight code modification for the InsertPoint attributes.