K
KZeeh
I am trying to rewrite some code from word.basic to use word.application b/c
some of it is not working in XP. I have had some luck with another program
but this one is not working properly. It is only printing a letter for the
first record in the table instead of a letter for each record in the table.
Here is most of the code. Does anyone see something that I am missing??
Thank you.
*****
oDoc = oWord.Documents.Open("test.doc")
oDoc.MailMerge.MainDocumentType = 0
oDoc.MailMerge.OpenDataSource;
(dsname,wformat,wconfirmconv,wreadonly,wlinktosource,;
waddtofilelist,wpassworddoc,wpasswordtemp,wrevert,;
wprotectdoc,wprotecttemp,wconn,wsqlstatement)
oWord.Documents(1).Activate
oWord.Printout()
oDoc.Close
******
some of it is not working in XP. I have had some luck with another program
but this one is not working properly. It is only printing a letter for the
first record in the table instead of a letter for each record in the table.
Here is most of the code. Does anyone see something that I am missing??
Thank you.
*****
oDoc = oWord.Documents.Open("test.doc")
oDoc.MailMerge.MainDocumentType = 0
oDoc.MailMerge.OpenDataSource;
(dsname,wformat,wconfirmconv,wreadonly,wlinktosource,;
waddtofilelist,wpassworddoc,wpasswordtemp,wrevert,;
wprotectdoc,wprotecttemp,wconn,wsqlstatement)
oWord.Documents(1).Activate
oWord.Printout()
oDoc.Close
******