To download C#.NET Q&A click here
To download C#.NET Q&A click here
Some Web projects use Excel as report solution. Create Excel file on server-side and then send to client-side to print. Excel is used widely and Microsoft provides perfect interface for operating Excel by using C#. Although, ZedGraph and other commercial report generating tools also have good charts, people can’t ignore Microsoft, the biggest brand in this area.
So, this article is going to introduce how to use C# to call Excel for creating chart and some methods of chart controls.
In the last article (Operate Chart), we use predefined Excel file to change some value in the chart to create chart. Here we will show you how to generate chart from defined data information.
First, add Excel reference and declare Excel objects which would be used.
Excel.Application ThisApplication = null; Excel.Workbooks m_objBooks = null; Excel._Workbook ThisWorkbook = null; Excel.Worksheet xlSheet = null;
To download the book click here
To go to tutorials page click here
لتحميل الدروس اضغط هنا
To download click here