V
Viatcheslav V. Vassiliev
After creating instance of Publisher.Application and adding document,
Publisher stays open and visible with blank publication, it is not closed
with app.Quit. VBScript to reproduce this is:
'-----test.vbs---------------------------------
dim app, doc
set app = CreateObject("Publisher.Application")
set doc = app.Documents.Add
doc.Close
set doc = nothing
app.Quit
set app = nothing
'----------------------------------------------
Save it as test.vbs and double-click or run "wscript.exe test.vbs".
Is it possible to close instance of Publisher started as automation and do
this from script? app.Quit does not work and sending WM_QUIT to
app.ActiveWindow.Hwnd (from Win32 app, not from script) does not close
Publisher too.
Regards,
Viatcheslav V. Vassiliev
Publisher stays open and visible with blank publication, it is not closed
with app.Quit. VBScript to reproduce this is:
'-----test.vbs---------------------------------
dim app, doc
set app = CreateObject("Publisher.Application")
set doc = app.Documents.Add
doc.Close
set doc = nothing
app.Quit
set app = nothing
'----------------------------------------------
Save it as test.vbs and double-click or run "wscript.exe test.vbs".
Is it possible to close instance of Publisher started as automation and do
this from script? app.Quit does not work and sending WM_QUIT to
app.ActiveWindow.Hwnd (from Win32 app, not from script) does not close
Publisher too.
Regards,
Viatcheslav V. Vassiliev