إخفاء عرض القيم الصفرية في ورقة العمل
Contents
[
Hide
]
أحيانًا ، قد تحتاج إلى إخفاء قيم الصفر في جدول بيانات. قد يكون الأمر مرتبطًا بالتفضيلات الشخصية أو معايير التنسيق.
لإخفاء القيم الصفرية في ورقة العمل في Microsoft Excel (على سبيل المثال Microsoft Excel 2003):
-
من قائمة الأدوات، حدد الخيارات، ثم حدد علامة تبويب العرض.
-
ألغِ تحديد خيار قيم الصفر.
-
انقر على موافق.
إخفاء قيم الصفر في Microsoft Excel
يرجى الاطلاع على الكود العيني التالي الذي يوضح كيفية إخفاء الأصفار باستخدام Aspose.Cells.
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-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getDataDir(HidingDisplayOfZeroValues.class); | |
// Create a new Workbook object | |
Workbook workbook = new Workbook(dataDir + "book1.xlsx"); | |
// Get First worksheet of the workbook | |
Worksheet sheet = workbook.getWorksheets().get(0); | |
// Hide the zero values in the sheet | |
sheet.setDisplayZeros(false); | |
// Save the workbook | |
workbook.save(dataDir + "output.xls"); |