views:

303

answers:

1

Hello all,

I am working on ms word automation using c#.net . I am aware of how to access a merge field, which is created in word, using c# .But my issue is how to access a nested merge field .For example : {INCLUDEPICTURE "{IF TRUE"{IMAGE_PATH}"}"\d}

So here when I go through each merge field present in the word document, it is selecting the total content present inside the 1st pair of {} braces (starting from INCLUDEPICTURE to \d).

How can I get the inner merge field means IMAGE_PATH.

Please reply asap.

Waiting for the reply ..... :)

Thanks

A: 

You can use a .net word component, named Spire.Doc which can easy to access an inner merge filed without ole automation, http://www.e-iceblue.com/Introduce/word-for-net-introduce.html

Hope help with you.

Peter