Autor Beitrag
Tower
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 99



BeitragVerfasst: Do 06.03.03 13:00 
Hi!

Ich starte Word aus meinem Delphi-Programm heraus per OLE, um Texte zu exportieren. Dafür benutze ich folgenden Code...

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
var
  Word: Variant;
begin
  try
    Word := GetActiveOleObject('Word.Basic');
  except
    Word := CreateOleObject('Word.Basic');
  end;

  Word.FileNew('Meine.dot');
  Word.Activate(Word.WindowName(0));
  Word.StartOfDocument;
  Word.AppMaximize;
  Word.ViewNormal;
  [...]
end


Klappt bei z.B. Word 97 sehr schön. Wenn ich das aber auf einem Rechner versuche, auf dem Office XP installiert, erscheint das Word-Fenster ohne Menü-, Symbol- oder sonstige -leisten.

Woran könnte das liegen?
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Do 06.03.03 13:35 
Nimm mal 'Word.Application' anstatt 'Word.Basic'