Show Formulas Instead of Values in a Worksheet

Contents
[ ]

Aspose.Cells for Python via .NET provides a Worksheet.show_formulas property. Set this to true to set Microsoft Excel to display formulas.

from aspose.cells import Workbook
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET
# The path to the documents directory.
dataDir = RunExamples.GetDataDir(".")
filePath = dataDir + "source.xlsx"
# Load the source workbook
workbook = Workbook(filePath)
# Access the first worksheet
worksheet = workbook.worksheets[0]
# Show formulas of the worksheet
worksheet.show_formulas = True
# Save the workbook
workbook.save(dataDir + ".out.xlsx")