From 21d50ab0c907fd5c7806bcd8ed999f009ad48142 Mon Sep 17 00:00:00 2001 From: KurmithaSF4004 Date: Wed, 7 Feb 2024 22:53:45 +0530 Subject: [PATCH 1/4] 868249-LargeRowColumn-FAQ --- File-Formats-toc.html | 1 + File-Formats/XlsIO/FAQ.md | 3 +- ...3-with-large-number-of-row-column-index.md | 30 +++++++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 File-Formats/XlsIO/faqs/how-to-resolve-exception-when-using-Excel97to2003-with-large-number-of-row-column-index.md diff --git a/File-Formats-toc.html b/File-Formats-toc.html index 21e48d0bc..bc122e82f 100644 --- a/File-Formats-toc.html +++ b/File-Formats-toc.html @@ -1670,6 +1670,7 @@
  • How to upload a file to Azure blob and download as stream
  • How to set rounded corner for chart in Excel document
  • How to find and replace text in hyperlinks
  • +
  • How to resolve exception when using Excel97 to 2003 with large number of row column index
  • diff --git a/File-Formats/XlsIO/FAQ.md b/File-Formats/XlsIO/FAQ.md index 1ae4bb5a4..6db242655 100644 --- a/File-Formats/XlsIO/FAQ.md +++ b/File-Formats/XlsIO/FAQ.md @@ -79,4 +79,5 @@ The frequently asked questions in Essential XlsIO are listed below. * [Why cone chart shows itself as column or bar chart?](faqs/why-cone-chart-shows-itself-as-colum-or-bar-chart) * [How to vary colors by point for line and column chart?](faqs/how-to-vary-colors-by-point-for-line-and-column-chart) * [How to upload a file to Azure blob and download as stream?](faqs/how-to-upload-a-file-to-azure-blob-and-download-as-stream) -* [How to find and replace text in hyperlinks](faqs/how-to-find-and-replace-text-in-hyperlinks) \ No newline at end of file +* [How to find and replace text in hyperlinks](faqs/how-to-find-and-replace-text-in-hyperlinks) +* [How to resolve Exception when using Excel97 to 2003 with large number of row column index](faqs/how-to-resolve-exception-when-using-Excel97to2003-with-large-number-of-row-column-index) \ No newline at end of file diff --git a/File-Formats/XlsIO/faqs/how-to-resolve-exception-when-using-Excel97to2003-with-large-number-of-row-column-index.md b/File-Formats/XlsIO/faqs/how-to-resolve-exception-when-using-Excel97to2003-with-large-number-of-row-column-index.md new file mode 100644 index 000000000..a2187e044 --- /dev/null +++ b/File-Formats/XlsIO/faqs/how-to-resolve-exception-when-using-Excel97to2003-with-large-number-of-row-column-index.md @@ -0,0 +1,30 @@ +--- +title: Avoid exception when using Excel97 to 2003 with large number of row column index. +description: This page helps to avoid exception when using Excel97 to 2003 with large number of row column index in Syncfusion .NET Excel library (XlsIO). +platform: file-formats +control: XlsIO +documentation: UG +--- + +# How to avoid exception when using Excel97 to 2003 with large number of rows column index? + +When creating a new workbook, it defaults to the Excel97to2003 version, which supports only 65,536 rows and 256 columns. If the row or column index exceeds this limit, an ArgumentException is thrown. To avoid this exception, we recommend setting the default version of the IApplication to Xlsx. + +The following code snippet shows how to set the default version of IApplication to Xlsx. + +{% tabs %} +{% highlight c# tabtitle="C# [Cross-platform]" %} +IApplication application = excelEngine.Excel; +application.DefaultVersion = ExcelVersion.Xlsx; +{% endhighlight %} + +{% highlight c# tabtitle="C# [Windows-specific]" %} +IApplication application = excelEngine.Excel; +application.DefaultVersion = ExcelVersion.Xlsx; +{% endhighlight %} + +{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} +IApplication application = excelEngine.Excel +application.DefaultVersion = ExcelVersion.Xlsx +{% endhighlight %} +{% endtabs %} \ No newline at end of file From 10920e86030859c5f93677543584e0378050893f Mon Sep 17 00:00:00 2001 From: KurmithaSF4004 Date: Fri, 9 Feb 2024 11:46:13 +0530 Subject: [PATCH 2/4] 868249-LargeRowColumn-FAQ --- File-Formats-toc.html | 2 +- ...using-Excel97to2003-with-large-number-of-row-column-index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/File-Formats-toc.html b/File-Formats-toc.html index bc122e82f..fe4c78653 100644 --- a/File-Formats-toc.html +++ b/File-Formats-toc.html @@ -1670,7 +1670,7 @@
  • How to upload a file to Azure blob and download as stream
  • How to set rounded corner for chart in Excel document
  • How to find and replace text in hyperlinks
  • -
  • How to resolve exception when using Excel97 to 2003 with large number of row column index
  • +
  • How to fix the ArgumentOutOfRangeException when accessing a large number of rows and columns?
  • diff --git a/File-Formats/XlsIO/faqs/how-to-resolve-exception-when-using-Excel97to2003-with-large-number-of-row-column-index.md b/File-Formats/XlsIO/faqs/how-to-resolve-exception-when-using-Excel97to2003-with-large-number-of-row-column-index.md index a2187e044..dc3bfc9b4 100644 --- a/File-Formats/XlsIO/faqs/how-to-resolve-exception-when-using-Excel97to2003-with-large-number-of-row-column-index.md +++ b/File-Formats/XlsIO/faqs/how-to-resolve-exception-when-using-Excel97to2003-with-large-number-of-row-column-index.md @@ -8,7 +8,7 @@ documentation: UG # How to avoid exception when using Excel97 to 2003 with large number of rows column index? -When creating a new workbook, it defaults to the Excel97to2003 version, which supports only 65,536 rows and 256 columns. If the row or column index exceeds this limit, an ArgumentException is thrown. To avoid this exception, we recommend setting the default version of the IApplication to Xlsx. +By default, when creating a new workbook, it is set to Excel97to2003 version which supports only 65536 rows and 256 columns. When the row and column index exceeds this limit, an ArgumentOutOfRange exception is thrown. To fix this, the DefaultVersion needs to be set as Xlsx. This version supports 1048576 rows and 16384 columns. The following code snippet shows how to set the default version of IApplication to Xlsx. From 8b5973dc9023a76b930617e3e4b5a1af35b0ea04 Mon Sep 17 00:00:00 2001 From: KurmithaSF4004 Date: Fri, 9 Feb 2024 11:48:26 +0530 Subject: [PATCH 3/4] 868249-LargeRowColumn-FAQ --- File-Formats/XlsIO/FAQ.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/File-Formats/XlsIO/FAQ.md b/File-Formats/XlsIO/FAQ.md index 6db242655..eb7f36c26 100644 --- a/File-Formats/XlsIO/FAQ.md +++ b/File-Formats/XlsIO/FAQ.md @@ -80,4 +80,4 @@ The frequently asked questions in Essential XlsIO are listed below. * [How to vary colors by point for line and column chart?](faqs/how-to-vary-colors-by-point-for-line-and-column-chart) * [How to upload a file to Azure blob and download as stream?](faqs/how-to-upload-a-file-to-azure-blob-and-download-as-stream) * [How to find and replace text in hyperlinks](faqs/how-to-find-and-replace-text-in-hyperlinks) -* [How to resolve Exception when using Excel97 to 2003 with large number of row column index](faqs/how-to-resolve-exception-when-using-Excel97to2003-with-large-number-of-row-column-index) \ No newline at end of file +* [How to fix the ArgumentOutOfRangeException when accessing a large number of rows and columns?](faqs/how-to-resolve-exception-when-using-Excel97to2003-with-large-number-of-row-column-index) \ No newline at end of file From f5a079425c05a5fe6bb37eef2d99c631acdc54fa Mon Sep 17 00:00:00 2001 From: KurmithaSF4004 Date: Fri, 9 Feb 2024 12:24:07 +0530 Subject: [PATCH 4/4] 868249-LargeRowColumn-FAQ --- File-Formats-toc.html | 2 +- File-Formats/XlsIO/FAQ.md | 2 +- ...-when-accessing-a-large-number-of-rows-and-columns.md} | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) rename File-Formats/XlsIO/faqs/{how-to-resolve-exception-when-using-Excel97to2003-with-large-number-of-row-column-index.md => how-to-fix-the-argument-out-of-range-exception-when-accessing-a-large-number-of-rows-and-columns.md} (55%) diff --git a/File-Formats-toc.html b/File-Formats-toc.html index fe4c78653..dc3aa649d 100644 --- a/File-Formats-toc.html +++ b/File-Formats-toc.html @@ -1670,7 +1670,7 @@
  • How to upload a file to Azure blob and download as stream
  • How to set rounded corner for chart in Excel document
  • How to find and replace text in hyperlinks
  • -
  • How to fix the ArgumentOutOfRangeException when accessing a large number of rows and columns?
  • +
  • How to fix the ArgumentOutOfRangeException when accessing a large number of rows and columns?
  • diff --git a/File-Formats/XlsIO/FAQ.md b/File-Formats/XlsIO/FAQ.md index eb7f36c26..b7f8315c7 100644 --- a/File-Formats/XlsIO/FAQ.md +++ b/File-Formats/XlsIO/FAQ.md @@ -80,4 +80,4 @@ The frequently asked questions in Essential XlsIO are listed below. * [How to vary colors by point for line and column chart?](faqs/how-to-vary-colors-by-point-for-line-and-column-chart) * [How to upload a file to Azure blob and download as stream?](faqs/how-to-upload-a-file-to-azure-blob-and-download-as-stream) * [How to find and replace text in hyperlinks](faqs/how-to-find-and-replace-text-in-hyperlinks) -* [How to fix the ArgumentOutOfRangeException when accessing a large number of rows and columns?](faqs/how-to-resolve-exception-when-using-Excel97to2003-with-large-number-of-row-column-index) \ No newline at end of file +* [How to fix the ArgumentOutOfRangeException when accessing a large number of rows and columns?](faqs/how-to-fix-the-argument-out-of-range-exception-when-accessing-a-large-number-of-rows-and-columns) \ No newline at end of file diff --git a/File-Formats/XlsIO/faqs/how-to-resolve-exception-when-using-Excel97to2003-with-large-number-of-row-column-index.md b/File-Formats/XlsIO/faqs/how-to-fix-the-argument-out-of-range-exception-when-accessing-a-large-number-of-rows-and-columns.md similarity index 55% rename from File-Formats/XlsIO/faqs/how-to-resolve-exception-when-using-Excel97to2003-with-large-number-of-row-column-index.md rename to File-Formats/XlsIO/faqs/how-to-fix-the-argument-out-of-range-exception-when-accessing-a-large-number-of-rows-and-columns.md index dc3bfc9b4..42219af65 100644 --- a/File-Formats/XlsIO/faqs/how-to-resolve-exception-when-using-Excel97to2003-with-large-number-of-row-column-index.md +++ b/File-Formats/XlsIO/faqs/how-to-fix-the-argument-out-of-range-exception-when-accessing-a-large-number-of-rows-and-columns.md @@ -1,14 +1,14 @@ --- -title: Avoid exception when using Excel97 to 2003 with large number of row column index. -description: This page helps to avoid exception when using Excel97 to 2003 with large number of row column index in Syncfusion .NET Excel library (XlsIO). +title: Fix the ArgumentOutOfRangeException when accessing a large number of rows and columns. +description: This page helps how to fix the ArgumentOutOfRangeException when accessing a large number of rows and columns in Syncfusion .NET Excel library (XlsIO). platform: file-formats control: XlsIO documentation: UG --- -# How to avoid exception when using Excel97 to 2003 with large number of rows column index? +# How to fix the ArgumentOutOfRangeException when accessing a large number of rows and columns? -By default, when creating a new workbook, it is set to Excel97to2003 version which supports only 65536 rows and 256 columns. When the row and column index exceeds this limit, an ArgumentOutOfRange exception is thrown. To fix this, the DefaultVersion needs to be set as Xlsx. This version supports 1048576 rows and 16384 columns. +By default, when creating a new workbook, it is set to Excel97to2003 version which supports only 65536 rows and 256 columns. When the row and column index exceeds this limit, an ArgumentOutOfRange exception is thrown. To fix this, the [DefaultVersion](https://help.syncfusion.com/cr/file-formats/Syncfusion.XlsIO.IApplication.html#Syncfusion_XlsIO_IApplication_DefaultVersion) needs to be set as [Xlsx](https://help.syncfusion.com/cr/file-formats/Syncfusion.XlsIO.ExcelVersion.html). This version supports 1048576 rows and 16384 columns. The following code snippet shows how to set the default version of IApplication to Xlsx.