Shape Object in Header

I have a word doc with embedded Merge fields. I'm trying to inspect the doc to find the Merge fields. I'm ok with finding the fields in the body of the document based on API call doc.MailMerge.GetMergeFieldNames(). I'm also trying to find a Merge field in the header. The complicating factor is that the merge field is in a so-called ShapeObject, specifically a text box. So far, I've been unable to find how to inspect items in a EntityType of Shape. Any suggestions?

3 Replies

GT Gunasekaran T Syncfusion Team September 1, 2010 11:51 AM UTC

Hi Rolf,

Thank you for using Syncfusion Products.

Currently we do not have support for parsing Drawing tools (Shape Objects), hence we cannot retrieve merge fields present in Shape objects. As an alternative to shape object, please use ordinary textbox to hold merge fields.
We have created a sample application to illustrate on how to use textbox with merge field and retrieve all Merge Field names present in a template document.

Please do find the sample from the attachment and let us know if this helps you.

Regards
Gunasekaran




MailMerge_b8c9df5d.zip


RS Rolf Stocker September 1, 2010 01:03 PM UTC

Thank you, that helps and I can now "see" the Merge field.



GT Gunasekaran T Syncfusion Team September 2, 2010 03:29 AM UTC

Hi Rolf,

Thank you for your response.

Please get in touch with us, if you require any further assistance.

Regards,
Gunasekaran



Loader.
Up arrow icon