P
Pete Ocasio
I have the following snippet of code that works to print a documet
programatically to a Amyuni PDF Converter Printer. The problem is that
while the doc prints fine, the app hangs on the wordApp.Quit() call since
the call to quit is ambiguous across the classe word.application and
word.application.events2. Also,Word, the app, is running in the task
manager and consuming precious memory. Since I added the call to Quit(),
the interface becomes visible to the user after the printing is completed.
This was not happening before and I must ensure that visibility is supress.
Does anybody has any idea on how to tackle this two issues? That is
suppressing visibility of the program interface and closing the program so
the memory resources are free and returned to the OS.
Dim wordApp As New Word.Application()
Dim Documents As Word.Documents
Documents = wordApp.Documents
Documents.Open(RptFile, False, True)
wordApp.ActivePrinter = "crPrinter"
wordApp.PrintOut(False)
Documents.Close()
wordApp.Quit()
Thanks for your help.
programatically to a Amyuni PDF Converter Printer. The problem is that
while the doc prints fine, the app hangs on the wordApp.Quit() call since
the call to quit is ambiguous across the classe word.application and
word.application.events2. Also,Word, the app, is running in the task
manager and consuming precious memory. Since I added the call to Quit(),
the interface becomes visible to the user after the printing is completed.
This was not happening before and I must ensure that visibility is supress.
Does anybody has any idea on how to tackle this two issues? That is
suppressing visibility of the program interface and closing the program so
the memory resources are free and returned to the OS.
Dim wordApp As New Word.Application()
Dim Documents As Word.Documents
Documents = wordApp.Documents
Documents.Open(RptFile, False, True)
wordApp.ActivePrinter = "crPrinter"
wordApp.PrintOut(False)
Documents.Close()
wordApp.Quit()
Thanks for your help.