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 Jun 01, 2018 6:54 am
Hello,
i face "Cannot implicitly convert type 'System.Drawing.Image[]' to 'System.Web.UI.WebControls.Image'Image[]" on this line "img= workbook.SaveChartAsImage(sheet);" Please help.
-
TestttUser
-
- Posts: 2
- Joined: Fri Jun 01, 2018 6:43 am
Fri Jun 01, 2018 7:40 am
Hello,
Thank you for your post.
Please declare the complete namespace like below:
- Code: Select all
System.Drawing.Image[] images= workbook.SaveChartAsImage(sheet);
You need first reference the "System.Drawing" assembly.
Sincerely,
Jane
E-iceblue support team
-
Jane.Bai
-
- Posts: 1156
- Joined: Tue Nov 29, 2016 1:47 am
Fri Jun 01, 2018 12:38 pm
Thank you so much.. It helped
-
TestttUser
-
- Posts: 2
- Joined: Fri Jun 01, 2018 6:43 am
Mon Jun 04, 2018 1:21 am
Hello TestttUser,
Thank you for your valuable feedback.
Do not hesitate to contact us if you need any help.
Sincerely,
Jane
E-iceblue support team
-
Jane.Bai
-
- Posts: 1156
- Joined: Tue Nov 29, 2016 1:47 am