closing excel application

federico maschio_77 at hotmail.com
Mon Oct 20 04:36:29 EDT 2003


Thanks a lot for your answer

"Hung Jung Lu" <hungjunglu at yahoo.com> ha scritto nel messaggio
news:8ef9bea6.0310192312.a711255 at posting.google.com...
> hungjunglu at yahoo.com (Hung Jung Lu) wrote in message
> >
> > import win32com.client
> > import pythoncom
> > app = win32com.client.Dispatch('Excel.Application')
> > app.Visible = 1
> > ...
> > print pythoncom._GetInterfaceCount()
> > app = None
> > print pythoncom._GetInterfaceCount()
> > pythoncom.CoUninitialize()
>
> Sorry, missed the line app.Quit() before the first print statement.
>
> import win32com.client
> import pythoncom
> app = win32com.client.Dispatch('Excel.Application')
> app.Visible = 1
> ...
> app.Quit()
> print pythoncom._GetInterfaceCount()
> app = None
> print pythoncom._GetInterfaceCount()
> pythoncom.CoUninitialize()
>
> Hung Jung






More information about the Python-list mailing list