Spire.XLS for .NET is a professional Excel .NET library that can be used to any type of .NET( C#, VB.NET, ASP.NET, .NET Core) application, both ASP.NET web sites and Windows Forms application.

Fri Feb 24, 2012 11:42 pm

I use the demo sample about pie charts codes.
I tried to compiler and got error:
Charts.ChartSerie cs = chart.Series[0]
The Error Message: The type or namespace name 'Charts' could not be found (are you missing a using directive or an assembly reference?)

I using
using Spire.Xls;
using Spire.Xls.Charts;
Would you please help?


Posts: 12
Joined: Sun May 22, 2011 10:25 pm

Mon Feb 27, 2012 7:14 am

Hi ctseng123,

Thanks for your inquiry and so sorry for the late reply.

Would you please replace your code with Spire.Xls.Charts.ChartSerie cs = chart.Series[0] to have a try?

Thanks in advance.

If you still have this problem,pleae send us your code and file to help us resolve this issue.
Have a nice day.

e-iceblue support
User avatar

Posts: 154
Joined: Thu Oct 20, 2011 2:53 am

Return to Spire.XLS