N
NickCowley
Hello everyone
I'm having an issue 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
I'm having an issue 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