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.

Thu Oct 06, 2016 1:17 pm

I have a customized chart and i am not able to export that chart as image. I am getting error
"Value cannot be null.\r\n Parameter name: interior".

I am using the following code:.

Workbook workbook = new Workbook();
workbook.LoadFromFile(@"D:\Test Excel\Timeline.xlsx");
Worksheet sheet = workbook.Worksheets[0];
Image[] imgs = workbook.SaveChartAsImage(sheet);
for (int i = 0; i < imgs.Length; i++)
{
imgs[i].Save(string.Format("img-{0}.png", i), ImageFormat.Png);
}

The above code works fine for some graphs but for the attached excel it doesn't.
Attachments
Excel File.zip
Attached excel is not working
(14.22 KiB) Downloaded 403 times

abhishekpandya24
 
Posts: 3
Joined: Thu Oct 06, 2016 1:05 pm

Fri Oct 07, 2016 2:44 am

Dear abhishekpandya24,

Thanks for your inquiry.
I have reproduced the issue and posted it to our Dev team. We will let you know when it is fixed.
Sorry for inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Oct 26, 2016 7:34 am

Dear abhishekpandya24,

Thanks for your waiting.
Now the exception issue has been resolved, welcome to test Spire.XLS Pack Hotfix Version:7.11.1. Also, we found the result image has issue, and our Dev team will continue to fix it. Once it is fixed, we will inform you again.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Oct 28, 2016 8:41 am

Dear abhishekpandya24,

Did you test the hotfix ? Could you please give us some feedback at your convenience ?

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Nov 04, 2016 11:06 am

Hi Team,

After applying the hotfix the error which was coming is resolved however the image created of the graph is not proper. No contents in the image.

Thanks,
Abhishek

abhishekpandya24
 
Posts: 3
Joined: Thu Oct 06, 2016 1:05 pm

Mon Nov 07, 2016 2:28 am

Hi Abhishek,

Thanks for your feedback.
Yes, we already noticed the issue and our Dev team is working on it. We will inform you when it is fixed.
Sorry for inconvenience.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Mon Nov 07, 2016 10:10 am

Thanks for the update team. Will wait for the update!!!

abhishekpandya24
 
Posts: 3
Joined: Thu Oct 06, 2016 1:05 pm

Fri Jan 06, 2017 7:23 am

Dear abhishekpandya24,

Thanks for your waiting.
Now the issue you submitted has some updates, welcome to test Spire.XLS Pack Hotfix Version:7.11.34.
But there still are some issues on the result image, our Dev team will continue to working on them. Once there is any news, we will notify you soon.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.XLS