R
Ram Baruch
Hi,
I'm trying to open WINWORD, then open a documet in it, print the document
and then- close WINWORD.
This is a sample of what I wrote:
Dim PrintApp As Word.Application
Set PrintApp = New Word.Application
PrintApp.Visible = True
PrintApp.Documents.Open FileName:="E:\Sample.doc", ReadOnly:=True
PrintApp.ActiveDocument.PrintOut
PrintApp.Quit
Set PrintApp = Nothing
The problem is that when it tries to close the application, it still prints
the document, and then it displays a message that if Word will be closed,
all printing will be stopped.
Of course what I want is to close WORD after the printing is done and not
WHILE printing. Is there anyway to do it?
Regards,
Ram.
I'm trying to open WINWORD, then open a documet in it, print the document
and then- close WINWORD.
This is a sample of what I wrote:
Dim PrintApp As Word.Application
Set PrintApp = New Word.Application
PrintApp.Visible = True
PrintApp.Documents.Open FileName:="E:\Sample.doc", ReadOnly:=True
PrintApp.ActiveDocument.PrintOut
PrintApp.Quit
Set PrintApp = Nothing
The problem is that when it tries to close the application, it still prints
the document, and then it displays a message that if Word will be closed,
all printing will be stopped.
Of course what I want is to close WORD after the printing is done and not
WHILE printing. Is there anyway to do it?
Regards,
Ram.