Printing Doc from access

R

Richard

Hi

I am trying to print a word document to pdf from access. I did manage to
print it out but it will not open. Error msg below:

---------------------------
Adobe Acrobat
---------------------------
There was an error opening this document. The file does not exist.
---------------------------
OK
---------------------------
I am using this code:

after opening the doc,

Dim strPrinter As String
strPrinter = wrdApp.ActivePrinter

wrdApp.ActivePrinter = "CutePDF Printer on Neo4"
wrdApp.PrintOut Background:=False, OutputFileName:="C:\test.pdf"
wrdApp.ActivePrinter = strPrinter

How do I overcome this?

Many thanks in advance.

Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top