يمكنك البحث عن الحد الأقصى من الصفوف والأعمدة المدعومة بالتنسيقات XLS و XLSX
Contents
[
Hide
]
سيناريوهات الاستخدام الممكنة
هناك عدد مختلف من الصفوف والأعمدة التي تدعمها تنسيقات Excel. على سبيل المثال ، يدعم XLS 65536 صفاً و 256 عموداً بينما يدعم XLSX 1048576 صفاً و 16384 عموداً. إذا كنت تريد معرفة عدد الصفوف والأعمدة التي يدعمها تنسيق معين ، فيمكنك استخدامالمصنف.الإعدادات. MaxRow والمصنف.الإعدادات. MaxColumnالخصائص.
يمكنك البحث عن الحد الأقصى من الصفوف والأعمدة المدعومة بالتنسيقات XLS و XLSX
ينشئ نموذج التعليمات البرمجية التالي المصنف أولاً في XLS ثم بتنسيق XLSX. بعد الخلق ، تطبع قيمالمصنف.الإعدادات. MaxRow والمصنف.الإعدادات. MaxColumnالخصائص. يرجى الاطلاع على إخراج وحدة التحكم من الكود الوارد أدناه للرجوع اليها.
عينة من الرموز
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 | |
// Print message about XLS format. | |
Console.WriteLine("Maximum Rows and Columns supported by XLS format."); | |
// Create workbook in XLS format. | |
Workbook wb = new Workbook(FileFormatType.Excel97To2003); | |
// Print the maximum rows and columns supported by XLS format. | |
int maxRows = wb.Settings.MaxRow + 1; | |
int maxCols = wb.Settings.MaxColumn + 1; | |
Console.WriteLine("Maximum Rows: " + maxRows); | |
Console.WriteLine("Maximum Columns: " + maxCols); | |
Console.WriteLine(); | |
// Print message about XLSX format. | |
Console.WriteLine("Maximum Rows and Columns supported by XLSX format."); | |
// Create workbook in XLSX format. | |
wb = new Workbook(FileFormatType.Xlsx); | |
// Print the maximum rows and columns supported by XLSX format. | |
maxRows = wb.Settings.MaxRow + 1; | |
maxCols = wb.Settings.MaxColumn + 1; | |
Console.WriteLine("Maximum Rows: " + maxRows); | |
Console.WriteLine("Maximum Columns: " + maxCols); |
إخراج وحدة التحكم
Maximum Rows and Columns supported by XLS format.
Maximum Rows: 65536
Maximum Columns: 256
Maximum Rows and Columns supported by XLSX format.
Maximum Rows: 1048576
Maximum Columns: 16384