Page 1 of 1

Access Violation when accessing Property DataLablel

Posted: Sun Sep 02, 2007 7:57 pm
by gklapper
Hi,

I get an access violation, when I try to set the property DataLablel.
Here's the code:

XLS.Sheets[0].Charts.Clear;
with XLS.Sheets[0].AddChart do
begin
// Position des Charts
Col1:=0;
Col2:=10;
Row1:=9;
Row2:=25;

Series[0].Values:='Sheet1!$B$2:$B$7';
Series[0].Category:='Sheet1!$A$2:$A$7';
Series[0].DefDataPoint.DataLablel:=[cdlValue]; //<-- Access Violation
end