Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
To add subtotals in Microsoft Excel:
Aspose.Cells for Python via .NET provides a class, Workbook, that represents a Microsoft Excel file. The Workbook class contains a worksheets collection that allows access to each worksheet in the Excel file.
A worksheet is represented by the Worksheet class. The class provides a wide range of properties and methods for managing worksheets and other objects. Each worksheet consists of a Cells collection. To add subtotals to a worksheet, use the Cells class' subtotal method. Provide parameter values to the method to specify how the subtotal should be calculated and placed.
In the examples below, we have added subtotals to the first worksheet of the template file (Book1.xls) using the Aspose.Cells for Python via .NET API. When the code is executed, a worksheet with subtotals is created.
The code snippets that follow show how to add subtotals to a worksheet with Aspose.Cells for Python via .NET.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.