Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
Delphi 10.2 Tokyo Professional
|
AW: OpenOffice anbindung per Delphi [Anfänger]
7. Sep 2011, 09:37
Wie DeddyH schon gesagt hatte - Du brauchst eine Instanzvariable der Klasse:
Delphi-Quellcode:
procedure TForm2.Button1Click(Sender: TObject);
var BumOO: TBum_OO_MS_OLE;
begin
BumOO := TBum_OO_MS_OLE.Create(True);
try
// BumOO.GoToStartOfDoc;
BumOO.InsertText('Test 123');
finally
BumOO.Free;
end;
end;
Michael "Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
|