XLS ve XLSX biçimleri tarafından desteklenen Maksimum Satır ve Sütunları Bulun
Contents
[
Hide
]
Olası Kullanım Senaryoları
Excel biçimleri tarafından desteklenen farklı sayıda satır ve sütun vardır. Örneğin, XLS 65536 satır ve 256 sütunu desteklerken XLSX 1048576 satır ve 16384 sütunu destekler. Belirli bir biçimde kaç satır ve sütunun desteklendiğini bilmek istiyorsanız, şunu kullanabilirsiniz:Workbook.Settings.MaxRow veWorkbook.Settings.MaxColumnözellikler.
XLS ve XLSX biçimleri tarafından desteklenen Maksimum Satır ve Sütunları Bulun
Aşağıdaki örnek kod çalışma kitabını önce XLS sonra XLSX biçiminde oluşturur. Yarattıktan sonra, değerlerini yazdırırWorkbook.Settings.MaxRow veWorkbook.Settings.MaxColumnözellikler. Lütfen referansınız için aşağıda verilen kodun konsol çıktısına bakın.
Basit kod
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); |
Konsol Çıkışı
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