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 / June 2005

Tip: Looking for answers? Try searching our database.

C#  --> View Merged data Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
goraya - 17 Jun 2005 18:44 GMT
Hi
I am using C# to prepare a mail merge document(Word2000) , I got the
values of mail merge fields from the db and write these to a text file
in the following format:
Field_A     Field_B       Field_C --->Field Name Row Tab seperated
Goraya                    PAK     ---->Values Row Tab seperated
I set the data source of the word document to this text file and after
mereging I going following results
Goraya
Field_B
PAK
View Mereged Data button does not work sometimes it is enabled and
sometimes it is not :<
The error I got in the end of execuation of my C# code is:
" Template Error : Invalid property assignment or Wrong parameter "
What is reason of this?????
Thank in advance for help :)
Regards
Qumer
Cindy M  -WordMVP- - 18 Jun 2005 13:47 GMT
Hi Goraya,

> I am using C# to prepare a mail merge document(Word2000) , I got the
> values of mail merge fields from the db and write these to a text file
> in the following format:
> Field_A     Field_B       Field_C --->Field Name Row Tab seperated
> Goraya                    PAK     ---->Values Row Tab seperated

Is the entry under Field_B empty, or do you really have only two entries
in this second row?

Are you linking to the data source using code, or opening a file that's
already linked?

Please show us the code involved in the mail merge

> I set the data source of the word document to this text file and after
> mereging I going following results
[quoted text clipped - 6 lines]
> " Template Error : Invalid property assignment or Wrong parameter "
> What is reason of this?????

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)
 
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.