COMException: Word cannot print. There is no printer installed.

N

nickcowley

Hello everyone

I'm having an ussie with getting my ASP.NE code to print serverside to
network printers.

It works fine when it is a local printer, but, as soon as I choose a network
printer if fails on the PrintOut() with COMException: Word cannot print.
There is no printer installed.

Printer works fine and is accessiabe if running word app.

Any ideas?

code example below:

Word.ApplicationClass oWordApp = new Word.ApplicationClass();
...............
{Various bits of code to create doc, etc.}
...............
oWordApp.ActivePrinter = DefaultPrinter;

oWordApp.PrintOut(ref missing, ref missing, ref missing, ref missing, ref
missing, ref missing, ref missing,ref missing,ref missing, ref missing,ref
missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref
missing, ref missing, ref missing);

oWordApp.Documents.Close(ref doNotSave, ref missing, ref missing);

Many thanks in advance.

Kind Regards

Nick
 

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