Autor Beitrag
bwolf
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 50



BeitragVerfasst: Di 06.03.07 10:14 
Hi all,

ich würde gern über Delphi Word steuern, nur leider komm ich schon ganz am Anfang nicht weiter :/
Mit folgendem Code möchte ich aus Delphi heraus Word starte

ausblenden Delphi-Quelltext
1:
2:
WordApplication1.Connect;
WordApplication1.Visible := True;


Allerdings klappt das nicht - die Anwedung bleibt einfach hängen, ohne Exception oder sonstiger Fehlermeldung.
Installiert habe ich D7 und Office 2000.
Auf einem anderen Rechner, auf dem ebenfalls D7 und Office 2000 drauf sind, gehts natürlich :/

Hat einer ne Idee was das sein könnte?
Danke schonmal,
grüße ben
xck3001
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 32


D5 Pers, D7 Ent
BeitragVerfasst: Mo 19.03.07 16:31 
Habe gerade das selbe Problem.
Sobald das connect() ausgeführt wird startet im Hintergrund zwar der Winword.exe Prozess und zieht sich 100% CPU Last, aber die Delphi Anwendung bleibt stehen :-(

Benutze Delphi 7 und Word 2000.
bwolf Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 50



BeitragVerfasst: Do 22.03.07 13:21 
Mist, ich hab leider noch keine wirkliche Lösung dazu gefunden.

Es klappt allerdings, wenn du das OLE-Object zu Laufzeit erstellst - Nachteil is halt das er dann die ganzen Methoden net anzeigt...

Hast du auch Win2000 oder XP?