FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index All products support Exel wird nicht sauber beendet.
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Exel wird nicht sauber beendet.
Posted: Thu Jan 03, 2008 03:32 PM

Hallo, aus Essen

hat jemand eine Lösung um Excel zu schließen ?
Mit dem neuen Win32Ole funktioniert das alte
oExcel:End() nicht mehr.
Die Information von Antonio : oExcel := NIL
funktioniert ebenfalls nicht.
Excel ist zwar anschließend unsichtbar und es erfolgt
kein Absturz, aber im Taskmanager sind die Instanzen
immer noch offen.

Danke
U. König :lol:

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 25
Joined: Sat Oct 08, 2005 06:44 AM
Exel wird nicht sauber beendet.
Posted: Thu Jan 03, 2008 04:58 PM

Hi!

Hast du es schon mit oExcel:Quit() probiert?

Best regards, Timm.



Timm Sodtalbers

Sodtalbers IT
Posts: 97
Joined: Sun Nov 20, 2005 04:32 PM
Exel wird nicht sauber beendet.
Posted: Sun Jan 06, 2008 09:05 PM
Hallo,

ich hab das Problem auch immer. Noch schlimmer ist es bei Word, da er dann immer mit "normal.dot speichern" kommt.

Ich rufe jetzt immer vor einem neuen Excel oder Word-Start immer nachfolgende Routine auf.
FUNCTION CLOSEWINWORD()

   LOCAL hWnd := GetWindow( GetDesktopWindow(), GW_CHILD )

   WHILE hWnd != 0
      IF GetWindowText( hWnd ) = "Microsoft Word" // oder Microsoft Excel
         PostMessage( hWnd, WM_CLOSE )
         RETURN .T.
      ENDIF

      hWnd = GetWindow( hWnd, GW_HWNDNEXT )
   ENDDO

   RETURN .F.


Vielleicht hilft es.

Gruss, Norbert

Continue the discussion