G
Guest
Hi,
I have an VB.NET (1.1) application which includes batch printing using
Word automation (Office 2003). As soon as Word has printed just one
item, Excel (whether it's running at the time or not) then refuses to
print to the same printer. The printing dialog appears, and it's has
the progress screen flash up as if it was printing as normal... but
the printer does nothing.
(I've confirmed winword.exe no longer exists in the processes.)
If I get Excel to print to a different printer (such as the MS
document image writer) it prints correctly - and then when I try the
original printer again, it works.
If you want to try it yourself, the following VBS code is pretty much
line for line the same as the VB.NET code and should make your Excel
not print. (I've tested it with 3 different machines.)
Dim doc
Set doc = CreateObject("Word.Application")
doc.Documents.Open "C:\print_test.doc", False
doc.ActivePrinter = "{printer name removed}"
doc.PrintOut
doc.Documents.Close False
doc.Quit
Set doc = nothing
I've run out of ideas... anybody?
Many thanks,
Tom
I have an VB.NET (1.1) application which includes batch printing using
Word automation (Office 2003). As soon as Word has printed just one
item, Excel (whether it's running at the time or not) then refuses to
print to the same printer. The printing dialog appears, and it's has
the progress screen flash up as if it was printing as normal... but
the printer does nothing.
(I've confirmed winword.exe no longer exists in the processes.)
If I get Excel to print to a different printer (such as the MS
document image writer) it prints correctly - and then when I try the
original printer again, it works.
If you want to try it yourself, the following VBS code is pretty much
line for line the same as the VB.NET code and should make your Excel
not print. (I've tested it with 3 different machines.)
Dim doc
Set doc = CreateObject("Word.Application")
doc.Documents.Open "C:\print_test.doc", False
doc.ActivePrinter = "{printer name removed}"
doc.PrintOut
doc.Documents.Close False
doc.Quit
Set doc = nothing
I've run out of ideas... anybody?
Many thanks,
Tom