H
Herbie
Hi,
I've written a Windows application in VB.net that generates and prints a
Word document using the PrintOut method after populating bookmarks in a
predefined template. After I print the document I close the document and set
the reference to nothing. Likewise I close the Word session and set its
reference to nothing. I even call the GC.Collect method.
Problem is that if I print from Excel before running the app, I get the
usual messagebox saying 'Now printing page 1 of 1 of [spreadsheet name] on
the [printername] on ne03' and the spreadsheet prints fine. After I run the
app, when I try to print from Excel I get the same messsage but ne03 is
replaced with Word. The spreadsheet appears to print but doesn't appear at
the printer. There are no additional processes running after my app closes
and the only cure is a reboot.
Any help would be much appreciated....
I've written a Windows application in VB.net that generates and prints a
Word document using the PrintOut method after populating bookmarks in a
predefined template. After I print the document I close the document and set
the reference to nothing. Likewise I close the Word session and set its
reference to nothing. I even call the GC.Collect method.
Problem is that if I print from Excel before running the app, I get the
usual messagebox saying 'Now printing page 1 of 1 of [spreadsheet name] on
the [printername] on ne03' and the spreadsheet prints fine. After I run the
app, when I try to print from Excel I get the same messsage but ne03 is
replaced with Word. The spreadsheet appears to print but doesn't appear at
the printer. There are no additional processes running after my app closes
and the only cure is a reboot.
Any help would be much appreciated....