Çalışma Sayfasında Değerler Yerine Formülleri Gösterme
Contents
[
Hide
]
Microsoft Excel’de, Formüller şeridi altındaki Formülleri Göster seçeneği kullanılarak hesaplanan değerler yerine formüller gösterilebilir. Formüller gösterildiğinde, Microsoft Excel çalışma sayfasında formülleri görüntüler. Aynı şeyi Aspose.Cells for Python via .NET kullanarak da başarabilirsiniz.
Aspose.Cells for Python via .NET, Worksheet.show_formulas özelliğini sağlar. Bunu true olarak ayarlayarak Microsoft Excel’de formülleri görüntüleyebilirsiniz.
This file contains hidden or 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
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") |