Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / April 2004

Tip: Looking for answers? Try searching our database.

doc

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ziver MALHASOGLU - 27 Apr 2004 10:07 GMT
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";
Doug Robbins - Word MVP - 28 Apr 2004 04:17 GMT
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.

Signature

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

> just give me a simple mailMErge example please, preferably with full source
> code...
[quoted text clipped - 22 lines]
>
> Object oName = "C:\\DataDoc.doc";
Ziver MALHASOGLU - 28 Apr 2004 09:18 GMT
   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,

> 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#
[quoted text clipped - 27 lines]
> >
> > Object oName = "C:\\DataDoc.doc";
Doug Robbins - Word MVP - 29 Apr 2004 14:16 GMT
check out:

http://www.attcanada.net/~kallal.msn/msaccess/msaccess.html

Signature

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

>
>     thank you for your answer Doug,
[quoted text clipped - 46 lines]
> > >
> > > Object oName = "C:\\DataDoc.doc";
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.