Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Zugriff ohne OLE auf Word / Excel / ... (Office) (https://www.delphipraxis.net/23547-zugriff-ohne-ole-auf-word-excel-office.html)

mbs 4. Jun 2004 19:37


Zugriff ohne OLE auf Word / Excel / ... (Office)
 
Hallo!

Gibt es eine "einfache" Möglichkeit, ohne OLE auf laufende Office-Instanzen zuzugreifen? Mit OLE (GetActiveOLEObject) habe ich bei Word Probleme. Manchmal bekomme ich über diese OLE-Funktion einfach kein gültiges Objekt. Irgendwie scheint Word sich nicht richtig zu registieren.

Kennt jemand das OLE-Problem? Oder kann mir jemand beim Zugriff ohne OLE helfen?

omata 29. Sep 2004 23:57

Re: Zugriff ohne OLE auf Word / Excel / ... (Office)
 
Moin,

hast du dir mal TWordApplication im Reiter "Server" angeschaut?


MfG
Thorsten

mbs 30. Sep 2004 00:04

Re: Zugriff ohne OLE auf Word / Excel / ... (Office)
 
Ja, hab ich. Inzwischen ist das Problem auch geklärt. Aber die Server-Komponeten sind doch manchmal sehr unhandlich...

Treffnix 30. Sep 2004 00:14

Re: Zugriff ohne OLE auf Word / Excel / ... (Office)
 
Zitat:

Zitat von omata
Moin,

hast du dir mal TWordApplication im Reiter "Server" angeschaut?


MfG
Thorsten

TWordApplication ist aber auch nur eine OLE-Kapselung. Wüsste jetzt auch keine andere Möglichkeit, aber so schwer ist das nu auch wieder nicht.

mbs 30. Sep 2004 08:48

Re: Zugriff ohne OLE auf Word / Excel / ... (Office)
 
Zitat:

TWordApplication ist aber auch nur eine OLE-Kapselung. Wüsste jetzt auch keine andere Möglichkeit, aber so schwer ist das nu auch wieder nicht.
Schon klar. :) Das Problem war irgendwie, dass das automatische Verbinden und Trennen von einer laufenden Instanz nicht geklappt hat. Es kam zu einer Exception. Die konnte ich zwar unterdrücken, dann hatte ich aber eben auch keine Verbindung mehr. Das ganze ist jetzt mehr "low-level" (*g*) gelöst.

Danke jedenfalls für Eure Antworten. :-D


Alle Zeitangaben in WEZ +1. Es ist jetzt 06:32 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz