在GridDesktop中渲染数据透视表
Contents
[
Hide
]
可能的使用场景
如果您的Excel文件有数据透视表,GridDesktop将能够正常加载和渲染数据透视表。此外,您还可以与GUI交互并操纵数据透视表。
在GridDesktop中渲染数据透视表
以下示例代码导入了包含数据透视表的示例Excel文件。屏幕截图显示了执行此示例代码的结果作为参考。
示例代码
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
//Path of the sample Excel file containing Pivot Table | |
string filePath = Utils.Get_SourceDirectory() + "sampleRenderPivotTableInGridDesktop.xlsx"; | |
//Import sample Excel file containing Pivot Table | |
this.gridDesktop1.ImportExcelFile(filePath); |