COM, create an OpenOffice.org document COM

StoneKeeper

New Member
hi,
at the moment i create an excel document with the following statements

DEFINE VARIABLE i AS INTEGER.
DEFINE VARIABLE ExcelApp AS COM-HANDLE.
/*
Instantiate Automation object for Excel.Application in ExcelApp
*/
CREATE "Excel.Application" ExcelApp.
. .
. .
. .
REPEAT i = 1 TO ExcelApp:Sheets:Count():
ExcelApp:Sheets:Item(i):Name = "ABC" + STRING(i).
END.

What i want to do is, to create an OpenOffice.org1.0 document in almost the same manner. Is there a posibility to do that? Can anybody give me an code example to to that?

greetings
stonekeeper
 
Back
Top