Autor Beitrag
FriFra
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 557

Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
BeitragVerfasst: Fr 03.10.03 02:36 
Wie kann ich erzwingen, dass die mit CreateOleObject aufgerufene Anwendung unsichtbar bleibt?

In meinem Fall handelt es sich um Lotus Notes. Immer wenn ich folgenden Aufruf mache:
ausblenden Delphi-Quelltext
1:
Session := CreateOleObject('Notes.NotesSession');					

wird zwar erfolgreich eine Session eröffnet, allerdings wird Notes sichtbar gestartet, falls es noch nicht läuft. In diesem Fall hätte ich Notes aber gern unsichtbar! Wie kann ich das machen?

_________________
Michael
(principal certified lotus professional - developer)
Horst
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 120



BeitragVerfasst: Di 07.10.03 20:29 
Hallo,

normalerweise kann man der visible-Eigenschaft false zuweisen.

Also probier mal folgendes:
ausblenden Quelltext
1:
Session.visible:=false;					


Klappt's :?: Oder klappt es zusammen :D

Gruß

Horst
:wave:
FriFra Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 557

Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
BeitragVerfasst: Di 07.10.03 20:35 
Die Session hat keine Eigenschaft Visible...

Und "Normalerweise" (z.B. word oder Excel) weist man dem OLE-Objete visible:=True zu, wenn man es sehen will, die Session (Loptus Notes) wird sofort sichtbar geöffnet.

_________________
Michael
(principal certified lotus professional - developer)