assign object name

Questions and answers on how to use XLSSpreadSheet.
Post Reply
kassel_b
Posts: 2
Joined: Fri Feb 12, 2010 9:34 pm

assign object name

Post 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;
Post Reply