قراءة تحققات البيانات في ملف Excel باستخدام Aspose.Cells.GridDesktop
Contents
[
Hide
]
يمكن لـ Aspose.Cells.GridDesktop قراءة وتطبيق تحققات البيانات في ملف Excel الخاص بك. يُرجى تحميل ملف Excel الخاص بك في GridDesktop وسيبدأ جميع تحققات البيانات داخله بالعمل كما يفعلون في Microsoft Excel.
قراءة تحققات البيانات في ملف Excel باستخدام Aspose.Cells.GridDesktop
يقوم الشيفرة المثالية التالية بإستيراد ملف إكسل عيني الذي يحتوي على بعض تحققات البيانات داخل GridDesktop.
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-.NET | |
// The path to the documents directory. | |
string dataDir = Utils.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | |
// Import sample excel file in GridDesktop | |
gridDesktop1.ImportExcelFile(dataDir + "ValidationTesting.xlsx"); |
بعد استيراد الملف في GridDesktop عند محاولة تغيير قيمة الخلية A2 إلى قيمة أكبر من 100 تظهر نافذة رسالة رسالة خطأ التحقق.