Access Violation when accessing Property DataLablel

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
gklapper
Posts: 1
Joined: Sun Sep 02, 2007 7:54 pm

Access Violation when accessing Property DataLablel

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