Page 1 of 1

assign object name

Posted: Fri Feb 12, 2010 9:46 pm
by kassel_b
I want to assign a specific name for an object like TDrwTexts. Easily, I can read the name with this command (Caption := XLS.sheets[0].DrawingObjects.Texts.items[i].Name;).

Why I'm not able to write it with this kind of command:
with xls.Sheets[0].DrawingObjects.texts.add do begin
row1 :=5;
row2 :=20;
name := 'hello';
end;