Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions File-Formats-toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -1670,6 +1670,7 @@
<li><a href="/file-formats/xlsio/faqs/how-to-upload-a-file-to-azure-blob-and-download-as-stream">How to upload a file to Azure blob and download as stream</a></li>
<li><a href="/file-formats/xlsio/faqs/how-to-set-rounded-corner-for-chart-in-excel-document">How to set rounded corner for chart in Excel document</a></li>
<li><a href="/file-formats/xlsio/faqs/how-to-find-and-replace-text-in-hyperlinks">How to find and replace text in hyperlinks</a></li>
<li><a href="/file-formats/xlsio/faqs/how-to-fix-the-argument-out-of-range-exception-when-accessing-a-large-number-of-rows-and-columns">How to fix the ArgumentOutOfRangeException when accessing a large number of rows and columns?</a></li>
</ul>
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion File-Formats/DocIO/Convert-Word-Document-to-PDF-in-MAUI.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,4 @@ Refer the below helper files and add them into the mentioned project. These help

Click [here](https://www.syncfusion.com/document-processing/word-framework/maui) to explore the rich set of Syncfusion Word library (DocIO) features.

An online sample link to [convert Word document to PDF](https://ej2.syncfusion.com/aspnetcore/Word/WordToPDF#/material3) in ASP.NET Core.
An online sample link to [convert Word document to PDF](https://ej2.syncfusion.com/aspnetcore/Word/WordToPDF#/bootstrap5) in ASP.NET Core.
2 changes: 1 addition & 1 deletion File-Formats/DocIO/Convert-Word-Document-to-PDF-in-UWP.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,4 @@ N> As per [MSDN announcement](https://devblogs.microsoft.com/dotnet/announcing-u

Click [here](https://www.syncfusion.com/document-processing/word-framework/uwp) to explore the rich set of Syncfusion Word library (DocIO) features.

An online sample link to [convert Word document to PDF](https://ej2.syncfusion.com/aspnetcore/Word/WordToPDF#/material3) in ASP.NET Core.
An online sample link to [convert Word document to PDF](https://ej2.syncfusion.com/aspnetcore/Word/WordToPDF#/bootstrap5) in ASP.NET Core.
1 change: 1 addition & 0 deletions File-Formats/DocIO/word-to-pdf.md
Original file line number Diff line number Diff line change
Expand Up @@ -2549,3 +2549,4 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
* [How to add signature field in the PDF converted from Word](https://support.syncfusion.com/kb/article/11438/how-to-add-signature-field-in-the-pdf-converted-from-word)
* [How to convert Word to PDF in Blazor WebAssembly (WASM)?](https://support.syncfusion.com/kb/article/12239/how-to-convert-word-to-pdf-in-blazor-webassembly-wasm)
* [How to perform Word to PDF conversion in WinForms ?](https://support.syncfusion.com/kb/article/8848/how-to-perform-word-to-pdf-conversion-in-winforms-?isInternalRefresh=False)
* [How to preserve track changes markup in Word to PDF conversion](https://support.syncfusion.com/kb/article/14997/how-to-preserve-simple-markup-all-markup-and-no-markup-of-track-changes-during-word-to-pdf-conversion)
547 changes: 294 additions & 253 deletions File-Formats/PDF/Create-PDF-file-in-MaUI.md

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion File-Formats/Presentation/Charts/Chart-Data-Labels.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,4 +245,8 @@ chart.Series(0).DataPoints(0).DataLabels.Layout.ManualLayout.Left = 3
chart.Series(0).DataPoints(0).DataLabels.Layout.ManualLayout.Top = 3

{% endhighlight %}
{% endtabs %}
{% endtabs %}

## See Also

* [How to change text of data labels for Chart in Presentation](https://support.syncfusion.com/kb/article/13828/how-to-change-the-text-in-data-labels-inside-a-chart-in-presentation-using-c-in-aspnet-core)
4 changes: 4 additions & 0 deletions File-Formats/Presentation/Charts/Chart-Legend.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,3 +465,7 @@ End Using
{% endtabs %}

You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master/Charts/Format-Legend/.NET).

## See Also

* [How to remove legend for Chart in Presentation](https://support.syncfusion.com/kb/article/13832/how-to-remove-legend-of-chart-in-powerpoint-using-c-in-aspnet-core)
3 changes: 2 additions & 1 deletion File-Formats/XlsIO/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
* [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-fix-the-argument-out-of-range-exception-when-accessing-a-large-number-of-rows-and-columns)
9 changes: 9 additions & 0 deletions File-Formats/XlsIO/Working-with-Charts.md
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,9 @@ chart.PrimaryValueAxis.MaximumValue = 14.0;

//Number format for axis
chart.PrimaryValueAxis.NumberFormat = "0.0";

//Display unit for axis
chart.PrimaryValueAxis.DisplayUnit = ExcelChartDisplayUnit.Hundreds;
{% endhighlight %}

{% highlight c# tabtitle="C# [Windows-specific]" %}
Expand All @@ -469,6 +472,9 @@ chart.PrimaryValueAxis.MaximumValue = 14.0;

//Number format for axis
chart.PrimaryValueAxis.NumberFormat = "0.0";

//Display unit for axis
chart.PrimaryValueAxis.DisplayUnit = ExcelChartDisplayUnit.Hundreds;
{% endhighlight %}

{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
Expand All @@ -483,6 +489,9 @@ chart.PrimaryValueAxis.MaximumValue = 14.0

'Number format for axis
chart.PrimaryValueAxis.NumberFormat = "0.0"

'Display unit for axis
chart.PrimaryValueAxis.DisplayUnit = ExcelChartDisplayUnit.Hundreds
{% endhighlight %}
{% endtabs %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ A complete working example to autofit rows and columns in an Excel worksheet in
N> 1) If a Range is text wrapped, the [AutoFitColumn](https://help.syncfusion.com/cr/file-formats/Syncfusion.XlsIO.IWorksheet.html#Syncfusion_XlsIO_IWorksheet_AutofitColumn_System_Int32_) method will not be applied on it.
N> 2) If a Range is merged, the Auto-Fit methods will not be applied on it. Note that this is the behavior of Excel as well.
N> 3) Auto fitting is a time consuming process so, it might cause performance issues when used excessively.
N> 4) When using [AutoFitRows](https://help.syncfusion.com/cr/file-formats/Syncfusion.XlsIO.IRange.html#Syncfusion_XlsIO_IRange_AutofitRows) or [AutofitColumns](https://help.syncfusion.com/cr/file-formats/Syncfusion.XlsIO.IRange.html#Syncfusion_XlsIO_IRange_AutofitColumns), the hidden rows or columns in the range will be adjusted based on the cell content which makes the row height or column width increase from zero. So, the hidden rows or columns will be visible. This is the behavior of XlsIO.

## Group or Ungroup Rows and Columns 

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
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 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](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.

{% 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 %}