Word Automation in VB.NET and Printing

S

scorpion53061

vb.net windows app.

IN this code:

objWord.ActiveDocument.PrintOut Background:=False

it produces the error:

Word cannot print. There is no printer installed

though there is. It is however a networked computer. I do not know if that
makes a difference.

Does anyone know what I am doing wrong?
 
P

Paul Clement

¤ vb.net windows app.
¤
¤ IN this code:
¤
¤ objWord.ActiveDocument.PrintOut Background:=False
¤
¤ it produces the error:
¤
¤ Word cannot print. There is no printer installed
¤
¤ though there is. It is however a networked computer. I do not know if that
¤ makes a difference.
¤
¤ Does anyone know what I am doing wrong?
¤

Is the networked printer set up as the default printer?


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
P

Paul Clement

¤ > Is the networked printer set up as the default printer?
¤
¤ Yes
¤

Can you print from the Word application manually (no automation)?

Also, I'm assuming this is not a an ASP.NET app.


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
S

scorpion53061

Can you print from the Word application manually (no automation)?
Also, I'm assuming this is not a an ASP.NET app.

correct not an asp.net app
yes i can print normally.
thank you for your help.

by the way do you know of a online guide for vba commands to the duplicate
functions in the "Main Menu"?
 

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