Free Support Forum -

MergeField TableStart reported incompletely by Node#GetText()


We have a MergeField in a .doc template


When browsing the tables using the .NET API on this particular Node GetText() returns


In the same document other MergeFields which are in fact TableStart work fine, only this one fails.

Any known issues applicable?

Thank you.

Kind regards


Hi Bart,

Thanks for your request. Could you please attach your document and code here for testing? We will check the issue and provide you more information.

Best regards,

Please find attachment on original post.


Thank you for additional information. There is no bug in Aspose.Words. This occurs because field code of this field is represented by two Run nodes. Please open the document in DocumentExplorer (Aspose.Words demo app) to make sure. Also please see the attached screenshot.

If you need to get full field code, you should get text of all runs between FieldStart and FieldSeparator nodes.

Also, you can try calling JuinRunsWithSameFormating method:

Best regards,

Hi there,

In addition, if you are scanning the text of fields to find the names of the merge fields, you can instead achieve this more easily by using the MailMerge.GetFieldNames method which retrieves the names of all MergeFields in the document.