Insert Pivot Chart in XLSX Documents via C#
Native and high performance Microsoft Excel XLSX spreadsheet with Pivot Chart creation programmatically using server side .NET APIs.
How to insert Pivot Chart in XLSX via C#
It is easy for the developers to insert Pivot Chart in XLSX format spreadsheet within running different reporting applications for data processing in just a few lines of code.
- Include the namespace in your class file
- Create Workbook class instance.
- Access the first worksheet of the workbook.
- Get the desired cell(s) of the worksheet and put the value in the cell(s).
- Insert PivotTable and set the style
- Insert Pivot Chart using the data of PivotTable
- Use Save method to save the workbook as XLSX file.
System Requirements
Just make sure that system have Microsoft Windows or a compatible OS with .NET Framework, .NET Core, Windows Azure, Mono or Xamarin Platforms as well as development environment like Microsoft Visual Studio.
- Install from command line as
nuget install Aspose.Cells
or via Package Manager Console of Visual Studio withInstall-Package Aspose.Cells
. - Alternatively, get the offline MSI installer or all DLLs in a ZIP file from downloads
Insert Pivot Chart in XLSX - C#
XLSX What is XLSX File Format?
XLSX is well-known format for Microsoft Excel documents that was introduced by Microsoft with the release of Microsoft Office 2007. Based on structure organized according to the Open Packaging Conventions as outlined in Part 2 of the OOXML standard ECMA-376, the new format is a zip package that contains a number of XML files. The underlying structure and files can be examined by simply unzipping the .xlsx file.
Read More