doc

Z

Ziver MALHASOGLU

just give me a simple mailMErge example please, preferably with full source
code...

Regards,


http://support.microsoft.com/default.aspx?scid=kb;EN-US;301659

i have tried the example above, but i got the error:
"invalid merge field" for the fields: FirstName, LastName,
Address,CityStateZip and got the additional errors:

A field calculation error occurred in record 1.

A field calculation error occurred in record 2.

A field calculation error occurred in record 3.



Error! MergeField was not found in header record of data source.

Error! MergeField was not found in header record of data source.

Error! MergeField was not found in header record of data source.





in the example, the data source is not given:





Object oName = "C:\\DataDoc.doc";
 
D

Doug Robbins - Word MVP

I would suggest that first you attempt to execute the merge manually from
Word so that you can determine whether it is a Word problem or a Visual C#
..NET problem.

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
Z

Ziver MALHASOGLU

thank you for your answer Doug,

As you said i have tried the "mail merge" facility of Word manually
first.

Now i need a code that uses a template, that have generated, a
datasource and as a result it produces the merged file.

I have found a lot of examples on web, but they don't use an existing
template, they produce their own templates dynamically in code.

I had found some recommendations also about using templates, but they
don't present full sample code.

If you can give some code it will be very beneficial for me.

regards,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top