G
Guy Cohen
Hi all.
I use VB6+WORD XP.
I wrote something based on : Q258512
http://support.microsoft.com/defaul...port/kb/articles/q258/5/12.asp&NoWebContent=1
In the original sample - MS chose to show the results:
code:
'the mail merge results are displayed
oDoc.Close False
oApp.Visible = True
I want to just print without any user clicks (print, close document).
so I ended my sub like this:
code:
Call WordDoc.PrintOut(False)
Call WordDoc.Close(False)
What I get instead of the content (when I use the original code) is -
A page full with (no values - just headers):
<company> <Company><NextRecord> ...
<Street> <Street> ...
<City> <City> ...
..
..
..
Please advise
TIA
Guy
I use VB6+WORD XP.
I wrote something based on : Q258512
http://support.microsoft.com/defaul...port/kb/articles/q258/5/12.asp&NoWebContent=1
In the original sample - MS chose to show the results:
code:
'the mail merge results are displayed
oDoc.Close False
oApp.Visible = True
I want to just print without any user clicks (print, close document).
so I ended my sub like this:
code:
Call WordDoc.PrintOut(False)
Call WordDoc.Close(False)
What I get instead of the content (when I use the original code) is -
A page full with (no values - just headers):
<company> <Company><NextRecord> ...
<Street> <Street> ...
<City> <City> ...
..
..
..
Please advise
TIA
Guy