MergeField not found


#1

Hi,

I am having trouble with my word 2003 document where I am adding simple merge fields <> and trying to fill them in my code.

This is the fragment of the code:

Document doc = new Document(System.IO.Path.Combine(DocPath, “mydoc.doc”));doc.MailMerge.Execute(new string[] {“HELLO”}, new object[] {“hi”});

When I execute this code, I get the original world document with <> merge field not being populated.

thanks


#2

Hi,

Thank you for considering Aspose.

Please attach the document template.


#3

Here is the attached document with same problem. Mergefield name here is ACN.


#4

So do you simply create a new blank document in Word 2003 and add a single merge field? The document (its internal structure) looks a bit strange.

Attached is a document created in Word 2003 as well and it works.

We will notify you as soon as clear up what’s wrong with your template.