M
Mike
The root of my question is this:
I have a number of Word documents that I want to print from Access, but as
ONE print job, so that the user is ensured that other people's print jobs
don't become intermingled.
My attempted solution:
Set rs = ...
do until rs.eof
Set wdApp = CreateObject("Word.Application")
Set doc = wdApp.Documents.Open(CStr(rs!DocPath))
wdApp.ActiveDocument.PrintOut PrintToFile:=True, Append:=True,
OutputFileName:="C:\test.doc" '(C:\test.doc exists)
rs.movenext
loop
I've tried a number of different things with the PrintOut method, but
nothing has worked so far - including not receiving an error, but nothing
actually happening to the Output file. Ideally, I'd like to print all the
documents to one file but not have to actually open the source documents.
Any suggestions? Thank in advance!
I have a number of Word documents that I want to print from Access, but as
ONE print job, so that the user is ensured that other people's print jobs
don't become intermingled.
My attempted solution:
Set rs = ...
do until rs.eof
Set wdApp = CreateObject("Word.Application")
Set doc = wdApp.Documents.Open(CStr(rs!DocPath))
wdApp.ActiveDocument.PrintOut PrintToFile:=True, Append:=True,
OutputFileName:="C:\test.doc" '(C:\test.doc exists)
rs.movenext
loop
I've tried a number of different things with the PrintOut method, but
nothing has worked so far - including not receiving an error, but nothing
actually happening to the Output file. Ideally, I'd like to print all the
documents to one file but not have to actually open the source documents.
Any suggestions? Thank in advance!