ضبط خيار جدول الدوري إظهار الخلايا الفارغة
Contents
[
Hide
]
يمكنك تعيين خيارات جدول البيانات المحورية المختلفة باستخدام Aspose.Cells for Python via .NET. أحد هذه الخيارات هو “لعرض الخلايا الفارغة كـ”. من خلال ضبط هذا الخيار، يتم عرض جميع الخلايا الفارغة في جدول البيانات المحورية كسلسلة محددة.
كيفية تعيين خيار جدول المحور في Microsoft Excel
للعثور على هذا الخيار وضبطه في Microsoft Excel:
- حدد جدول الجدول المحوري وانقر بزر الماوس الأيمن.
- حدد خيارات الجدول الدوري.
- حدد علامة التبويب التخطيط والشكل.
- حدد خيار إظهار الخلايا الفارغة وحدد سلسلة.
كيفية تعيين خيار جدول المحور باستخدام Aspose.Cells for Python Excel Library
توفر Aspose.Cells for Python via .NET خصائص PivotTable.display_null_string و PivotTable.null_string لضبط خيار جدول البيانات المحورية “لعرض الخلايا الفارغة كـ”.
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
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(".") | |
wb = Workbook(dataDir + "input.xlsx") | |
pt = wb.worksheets[0].pivot_tables[0] | |
# Indicating if or not display the empty cell value | |
pt.display_null_string = True | |
# Indicating the null string | |
pt.null_string = "null" | |
pt.calculate_data() | |
pt.refresh_data_on_opening_file = False | |
wb.save(dataDir + "output_out.xlsx") |