From 36148d80480b0c8d5bfd5fbcf482d6f988ae3066 Mon Sep 17 00:00:00 2001 From: GowthamPonrajSF5414 Date: Fri, 13 Feb 2026 01:48:18 +0530 Subject: [PATCH 1/3] 999741- add FAQ FindMaxSuppRows --- ...-rows-and-columns-in-an-excel-worksheet.md | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Document-Processing/Excel/Excel-Library/NET/faqs/how-to-get-the-maximum-supported-rows-and-columns-in-an-excel-worksheet.md diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-get-the-maximum-supported-rows-and-columns-in-an-excel-worksheet.md b/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-get-the-maximum-supported-rows-and-columns-in-an-excel-worksheet.md new file mode 100644 index 000000000..784c782a7 --- /dev/null +++ b/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-get-the-maximum-supported-rows-and-columns-in-an-excel-worksheet.md @@ -0,0 +1,70 @@ +--- +title: Get the maximum number of rows and columns supported in an Excel worksheet | Syncfusion +description: Code example to get the maximum number of rows and columns supported in an Excel worksheet using Syncfusion .NET Excel library (XlsIO). +platform: document-processing +control: XlsIO +documentation: UG +--- + +# How to get the maximum number of rows and columns supported in an Excel worksheet? + +The [MaxRowCount](https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IWorkbook.html#Syncfusion_XlsIO_IWorkbook_MaxRowCount) and [MaxColumnCount](https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IWorkbook.html#Syncfusion_XlsIO_IWorkbook_MaxColumnCount) properties of [IWorkbook](https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IWorkbook.html) return the maximum number of rows and columns supported in an Excel worksheet. + +The following code examples demonstrate how to retrieve the maximum number of rows and columns supported in an Excel worksheet using C# (cross-platform and Windows-specific) and VB.NET. + +{% tabs %} +{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/XlsIO-Examples/master/FAQ/Maximum%20number%20of%20rows%20and%20columns%20supported/.NET/MaximumNumberOfRowsColumns/MaximumNumberOfRowsColumns/Program.cs,180" %} +using (ExcelEngine excelEngine = new ExcelEngine()) +{ + IApplication application = excelEngine.Excel; + application.DefaultVersion = ExcelVersion.Xlsx; + IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/Input.xlsx")); + IWorksheet worksheet = workbook.Worksheets[0]; + + // To get the maximum supported rows and columns + int maxRow = workbook.MaxRowCount; + int maxColumns = workbook.MaxColumnCount; + + // Display the maximum number of rows and columns supported + Console.WriteLine("Maximum number of rows supported: " + maxRow.ToString()); + Console.WriteLine("Maximum number of columns supported: " + maxColumns.ToString()); +} +{% endhighlight %} + +{% highlight c# tabtitle="C# [Windows-specific]" %} +using (ExcelEngine excelEngine = new ExcelEngine()) +{ + IApplication application = excelEngine.Excel; + application.DefaultVersion = ExcelVersion.Xlsx; + IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/Input.xlsx")); + IWorksheet worksheet = workbook.Worksheets[0]; + + // To get the maximum supported rows and columns + int maxRow = workbook.MaxRowCount; + int maxColumns = workbook.MaxColumnCount; + + // Display the maximum number of rows and columns supported + Console.WriteLine("Maximum number of rows supported: " + maxRow.ToString()); + Console.WriteLine("Maximum number of columns supported: " + maxColumns.ToString()); +} +{% endhighlight %} + +{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} +Using excelEngine As New ExcelEngine() + Dim application As IApplication = excelEngine.Excel + application.DefaultVersion = ExcelVersion.Xlsx + Dim workbook As IWorkbook = application.Workbooks.Open("Input.xlsx") + Dim worksheet As IWorksheet = workbook.Worksheets(0) + + ' To get the maximum supported rows and columns + Dim maxRow As Integer = workbook.MaxRowCount + Dim maxColumns As Integer = workbook.MaxColumnCount + + ' Display the maximum number of rows and columns supported + Console.WriteLine("Maximum number of rows supported: " + maxRow.ToString()) + Console.WriteLine("Maximum number of columns supported: " + maxColumns.ToString()) +End Using +{% endhighlight %} +{% endtabs %} + +A complete working example in C# is present on this GitHub page. \ No newline at end of file From f983f0520462a0e6a362219894e4e9afa9c76c57 Mon Sep 17 00:00:00 2001 From: GowthamPonrajSF5414 Date: Fri, 13 Feb 2026 02:04:39 +0530 Subject: [PATCH 2/3] 999741- fix CI --- ...aximum-supported-rows-and-columns-in-an-excel-worksheet.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-get-the-maximum-supported-rows-and-columns-in-an-excel-worksheet.md b/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-get-the-maximum-supported-rows-and-columns-in-an-excel-worksheet.md index 784c782a7..7745407b8 100644 --- a/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-get-the-maximum-supported-rows-and-columns-in-an-excel-worksheet.md +++ b/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-get-the-maximum-supported-rows-and-columns-in-an-excel-worksheet.md @@ -1,12 +1,12 @@ --- -title: Get the maximum number of rows and columns supported in an Excel worksheet | Syncfusion +title: Get maximum rows and columns in a worksheet | Syncfusion description: Code example to get the maximum number of rows and columns supported in an Excel worksheet using Syncfusion .NET Excel library (XlsIO). platform: document-processing control: XlsIO documentation: UG --- -# How to get the maximum number of rows and columns supported in an Excel worksheet? +# How to get the maximum rows and columns in a worksheet using XlsIO? The [MaxRowCount](https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IWorkbook.html#Syncfusion_XlsIO_IWorkbook_MaxRowCount) and [MaxColumnCount](https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IWorkbook.html#Syncfusion_XlsIO_IWorkbook_MaxColumnCount) properties of [IWorkbook](https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IWorkbook.html) return the maximum number of rows and columns supported in an Excel worksheet. From 96f228eb974752f2f0c41eca0a48d475bbd4ea80 Mon Sep 17 00:00:00 2001 From: GowthamPonrajSF5414 Date: Fri, 13 Feb 2026 02:10:28 +0530 Subject: [PATCH 3/3] 999741- add FAQFindMaxSuppRows in list --- Document-Processing-toc.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Document-Processing-toc.html b/Document-Processing-toc.html index db35c71bb..04d2d9b4e 100644 --- a/Document-Processing-toc.html +++ b/Document-Processing-toc.html @@ -6410,6 +6410,9 @@
  • How to retrieve the name of the chart in an Excel worksheet?
  • +
  • + How to get the maximum rows and columns in a worksheet using XlsIO? +