Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Fri Dec 21, 2018 10:35 am

Hi

I am trying to create a chart containing error bars. This works for Excel 2010 and above but when loading the xls format file I get the error "File error: data may have been lost.". After loading the chart is displayed correctly.

Code: Select all
 
var s4 = chart.Series.Add();
s4.Values = sheet.Range["U3:U4"];
s4.CategoryLabels = sheet.Range["R3:R4"];
var eb = s4.ErrorBar(true, sheet.Range["V3:V4"], sheet.Range["W3:W4"]);
eb.Border.Weight = ChartLineWeightType.Medium;
eb.Border.Color = Color.Gray;


If I change to bIsY parameter to false I do not get the error message.

abarnett
 
Posts: 5
Joined: Thu Dec 20, 2018 9:19 am

Mon Dec 24, 2018 2:44 am

Hi,

Thank you for your inquiry.
To help us look into the issue, could you please provide your sample Excel document as well as the complete code snippet?
For the privacy, you could send to us via email(Jane.Bai@e-iceblue.com).

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Wed Jan 02, 2019 9:40 am

Hi

Thank you for your response.

I have attached the code to reproduce the issue.
Attachments
Program.zip
(1.88 KiB) Downloaded 225 times

abarnett
 
Posts: 5
Joined: Thu Dec 20, 2018 9:19 am

Wed Jan 02, 2019 10:23 am

Hi,

I have reproduced the issue that the file was corrupted when saving to ".xls" format and logged it in our bug tracking system.
Once it is fixed, I will let you know.
Sorry for the inconvenience caused.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Return to Spire.XLS