Can we read all mergefileds froma word doc

I am checking the aspose library and if it works well with the project our company may buy the license.I couldn't find a way to search or read the merge fields in a word doc.for e.g.

<>

if i could read the field as address i think that will be great.I need help in doing so.If anyone could help i Shall be thankful.

Thanks in advance

Ritvik

Thanks for considering Aspose. Yes, we don't yet have a straightforward way to enumerate or look up fields in the document. Yet, there is a relatively easy workaround, which can be nicknamed "fake merge":

public void TestEnumerateMergeFields()

{

Document doc = TestUtil.Open("TestEnumerateMergeFields.doc");

doc.MailMerge.MergeField +=new MergeFieldEventHandler(MergeFieldHandler1;

doc.MailMerge.Execute(new string[] {}, new string[] {});

TestUtil.SaveShow(doc);

}

private void MergeFieldHandler1object sender, MergeFieldEventArgs e)

{

MessageBox.Show(

string.Format("The field code is {0}\r\n", e.Field.GetFieldCode())" +

string.Format("The field name is {0}\r\n", e.DocumentFieldName) +

string.Format("The field value is {0}\r\n", e.Field.Result));

}

In this code we are doing mail merge with no data. The mail merge engine is built in that way that it still enumerates through all merge fields in the documentm firing MergeField event for each of them. And that is exactly what is required. And MergeFieldEventArgs contain all information about the field that we need.

Hope this helps,