إخفاء عرض القيم الصفرية في ورقة العمل
Contents
[
Hide
]
في بعض الأحيان ، تحتاج إلى إخفاء القيم الصفرية في جدول بيانات. قد يكون تفضيلًا شخصيًا أو معيار تنسيق.
لإخفاء القيم الصفرية في ورقة عمل في Microsoft Excel (على سبيل المثال Microsoft Excel 2003):
- منأدوات القائمة ، حددخيارات ، ثم حدد ملفمنظر التبويب.
- قم بإلغاء تحديد ملفقيم صفرية اختيار.
- انقرنعم.
إخفاء القيم الصفرية في Microsoft Excel
الرجاء مراجعة نموذج التعليمات البرمجية التالي الذي يوضح كيفية إخفاء الأصفار باستخدام Aspose.Cells.
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
// 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"); |