Thema: Delphi Selection

Einzelnen Beitrag anzeigen

TypusMensch

Registriert seit: 29. Aug 2003
Ort: Goth-A
182 Beiträge
 
Delphi 7 Enterprise
 
#6

Re: Selection

  Alt 18. Nov 2004, 12:06
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
var
    S: WordSelection;
begin
    S :=WordApplication1.Selection;
    S.TypeText('Here is some text');
    S.TypeParagraph;
    S.TypeParagraph;
    S.TypeText('And there was a blank line.');
end;
Statt var S: Selection einfach var S: WordSelection. Irgendwie auch logisch...
  Mit Zitat antworten Zitat