Thema: Delphi Word Öffnen

Einzelnen Beitrag anzeigen

madtom

Registriert seit: 24. Feb 2005
Ort: Hamburg
115 Beiträge
 
Delphi XE7 Professional
 
#4

AW: Word Öffnen

  Alt 26. Apr 2011, 21:12
Hallo,

mit der WordApplication Komponente (ab Delphi 7, glaube ich) geht auch folgendes:
Delphi-Quellcode:
with WordApplication do begin
  try
    Connect;
    Visible := True;
    Documents.Add(EmptyParam, EmptyParam, EmptyParam, EmptyParam);
    with Selection do begin
      TypeText('Some Text' + #11);
      ...
    end;
  finally
    ...
  end;
Beste Grüße
Thomas
Thomas
  Mit Zitat antworten Zitat