You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Document-Processing/Excel/Excel-Library/NET/FAQ.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,13 +62,13 @@ The frequently asked questions in Essential<sup>®</sup> XlsIO are listed bel
62
62
*[How to search a value in only specific columns of an Excel worksheet?](faqs/how-to-search-a-value-in-only-specific-columns-of-an-Excel-worksheet)
63
63
*[How to read filtered rows in Excel?](faqs/how-to-read-filtered-rows-in-excel)
64
64
*[What are the deprecated APIs in XlsIO?](faqs/what-are-the-deprecated-apis-in-xlsio)
65
-
*[How to detect merged cells in Excel?](faqs/how-to-detect-merged-cells-in-Excel)
66
-
*[How to apply formatting to pivot table in Excel protected view?](faqs/how-to-apply-formatting-to-pivottable-in-Excel-protected-view)
65
+
*[How to detect merged cells in Excel?](faqs/how-to-detect-merged-cells-in-excel)
66
+
*[How to apply formatting to pivot table in Excel protected view?](faqs/how-to-apply-formatting-to-pivottable-in-excel-protected-view)
67
67
*[Does XlsIO library support multithreading and thread-safe?](faqs/does-xlsio-support-multi-threading)
68
68
*[How to check whether the given range is valid or not?](faqs/how-to-check-whether-the-given-range-is-valid-or-not)
69
69
*[How to convert hidden worksheets alone to image?](faqs/how-to-convert-hidden-worksheets-alone-to-image)
70
70
*[How to find and highlight data in Excel?](faqs/how-to-find-and-highlight-data-in-Excel)
71
-
*[How to avoid header row while sorting Excel data?](faqs/how-to-avoid-header-row-while-sorting-Excel-data)
71
+
*[How to avoid header row while sorting Excel data?](faqs/how-to-avoid-header-row-while-sorting-excel-data)
72
72
*[How to edit external workbook reference link?](faqs/how-to-edit-external-workbook-reference-link)
73
73
*[How to set error bars in chart?](faqs/how-to-set-error-bars-in-chart)
74
74
*[Migrate XlsIO library from .NET Framework to .NET Core?](faqs/migrate-from-net-framework-to-net-core)
@@ -92,37 +92,37 @@ The frequently asked questions in Essential<sup>®</sup> XlsIO are listed bel
92
92
*[How to convert a value from pixel to points with scaling percentage?](faqs/how-to-convert-a-value-from-pixel-to-points-with-scaling-percentage)
93
93
*[How to save the edited changes in the same Excel document?](faqs/how-to-save-the-edited-chages-in-the-same-excel-document)
94
94
*[How to get the frozen rows and columns in an Excel document?](faqs/how-to-get-the-frozen-rows-and-columns-in-an-excel-document)
95
-
*[How to find duplicate values in the Excel document using formulas?](faqs/how-to-find-duplicate-values-in-the-Excel-document-using-formulas)
95
+
*[How to find duplicate values in the Excel document using formulas?](faqs/how-to-find-duplicate-values-in-the-excel-document-using-formulas)
96
96
*[How to protect zip file items with different passwords using C#?](faqs/how-to-protect-zip-file-items-with-different-passwords)
97
97
*[How to extract and save images from an Excel worksheet](faqs/how-to-extract-and-save-images-from-the-worksheet)
98
98
*[How to delete blank rows and blank columns in an Excel worksheet using C#?](faqs/how-to-delete-blank-rows-and-columns-in-a-worksheet)
99
-
*[How to retain cell values after removing formulas in Excel?](faqs/How-to-retain-cell-values-after-removing-formulas-in-Excel)
99
+
*[How to retain cell values after removing formulas in Excel?](faqs/how-to-retain-cell-values-after-removing-formulas-in-excel)
100
100
*[How to remove data validation from the specified range?](faqs/how-to-remove-data-validation-from-the-specified-range)
101
101
*[How to remove autofilter from an Excel worksheet?](faqs/how-to-remove-autofilter-in-an-Excel)
102
-
*[How to convert an Excel worksheet to a high-resolution image?](faqs/how-to-convert-an-Excel-worksheet-to-a-high-resolution-image)
102
+
*[How to convert an Excel worksheet to a high-resolution image?](faqs/how-to-convert-an-excel-worksheet-to-a-high-resolution-image)
103
103
*[How to add and remove page breaks in a worksheet?](faqs/how-to-add-and-remove-page-breaks-in-Excel)
104
104
*[How to decrypt individual items with specific passwords?](faqs/how-to-decrypt-individual-items-with-specific-passwords-in-a-protected-zip-file)
105
105
*[What is the behavior of FitToPagesTall and FitToPagesWide?](faqs/what-is-the-behavior-of-fittopagestall-and-fittopageswide)
106
106
*[How to use AND and OR operators in the filter?](faqs/how-to-use-and-or-operators-in-the-filters)
107
107
*[Why out of memory exception is thrown when handling large documents which is having size more than 2GB?](faqs/why-out-of-memory-exception-is-thrown-when-handling-large-documents)
108
108
*[Does XlsIO support the multiline header footer support?](faqs/does-xlsio-support-the-multiline-header-footer-support)
109
-
*[How to add Barcode in Excel document using C#?](faqs/how-to-add-Barcode-in-Excel-document)
109
+
*[How to add Barcode in Excel document using C#?](faqs/how-to-add-barcode-in-excel-document)
110
110
*[How to delete hyperlinks from a worksheet without affecting the cell styles using C#?](faqs/how-to-delete-hyperlinks-from-worksheet-without-affecting-the-cell-styles)
111
111
*[How to avoid processing unnecessary worksheets when opening an Excel document using C#?](faqs/how-to-avoid-processing-unnecessary-worksheets-when-opening-an-Excel-document-using-C#)
112
112
*[How to run macros in Excel document?](faqs/how-to-run-macros-in-Excel-document)
113
113
*[Does XlsIO support editing an Excel document that is already open in Microsoft Excel?](faqs/does-xlsio-support-editing-an-Excel-document-that-is-already-open-in-Microsoft-Excel)
114
114
*[How to compute the size of the Excel file?](faqs/how-to-compute-the-size-of-the-Excel-file)
115
-
*[How to set and format time values in Excel using TimeSpan?](faqs/how-to-set-and-format-time-values-in-Excel-using-TimeSpan)
115
+
*[How to set and format time values in Excel using TimeSpan?](faqs/how-to-set-and-format-time-values-in-excel-using-timespan)
116
116
*[How to set the default font and font size in an Excel Workbook?](faqs/how-to-set-the-default-font-and-font-size-in-an-Excel-workbook)
117
117
*[How to set traffic lights icon in Excel conditional formatting using C#?](faqs/how-to-set-traffic-lights-icon-in-Excel-conditional-formatting-using-C#)
118
118
*[How to apply TimePeriod conditional formatting in Excel using C#?](faqs/how-to-apply-TimePeriod-conditional-formatting-in-Excel)
119
119
*[How to get the list of worksheet names in an Excel workbook?](faqs/how-to-get-the-list-of-worksheet-names-in-an-Excel-workbook)
120
-
*[How to switch chart series data interpretation from horizontal (rows) to vertical (columns) in Excel?](faqs/how-to-switch-chart-series-data-interpretation-from-horizontal-(rows)-to-vertical-(columns)-in-Excel)
121
-
*[How to add Oval shape to Excel chart using XlsIO?](faqs/how-to-add-oval-shape-to-Excel-chart)
122
-
*[How to show the leader line on Excel chart?](faqs/how-to-show-the-leader-line-on-Excel-chart)
120
+
*[How to switch chart series data interpretation from horizontal (rows) to vertical (columns) in Excel?](faqs/how-to-switch-chart-series-data-interpretation-from-horizontal-(rows)-to-vertical-(columns)-in-excel)
121
+
*[How to add Oval shape to Excel chart using XlsIO?](faqs/how-to-add-oval-shape-to-excel-chart)
122
+
*[How to show the leader line on Excel chart?](faqs/how-to-show-the-leader-line-on-excel-chart)
123
123
*[How to set the background color for Excel Chart in C#?](faqs/how-to-set-the-background-color-for-Excel-chart-in-C#)
124
124
*[How to override an Excel document using C#?](faqs/how-to-override-an-Excel-document-using-C#)
125
125
*[Does XlsIO support converting an empty Excel document to PDF?](faqs/does-xlsio-support-converting-an-empty-Excel-document-to-PDF)
126
-
*[What is the maximum supported text length for data validation in Excel?](faqs/what-is-the-maximum-supported-text-length-for-data-validation-in-Excel)
126
+
*[What is the maximum supported text length for data validation in Excel?](faqs/what-is-the-maximum-supported-text-length-for-data-validation-in-excel)
127
127
*[How to set column width for a pivot table range in an Excel Document?](faqs/how-to-set-column-width-for-a-pivot-table-range-in-an-Excel-Document)
128
128
*[How to convert JSON document to CSV format document?](faqs/how-to-convert-json-document-to-csv-format-document)
Copy file name to clipboardExpand all lines: Document-Processing/Excel/Excel-Library/NET/Import-Export/Import-to-Excel.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,24 @@ A complete working example to import data from DataTable to Excel in C# is prese
75
75
76
76
N> XlsIO imports the data from data table into Excel worksheet based on the data table column type. So, it is suggested to create the data tables with required column types such as number, text or date time before importing the data table to Excel worksheet.
77
77
78
+
### Preserve Data Types
79
+
80
+
To preserve data types when importing a DataTable into an Excel worksheet, set the **preserveTypes** parameter of the <ahref="https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IWorksheet.html#Syncfusion_XlsIO_IWorksheet_ImportDataTable_System_Data_DataTable_System_Boolean_System_Int32_System_Int32_System_Boolean_">ImportDataTable</a> method to **true**.
The following code example illustrates how to import DataColumn into an Excel using [ImportDataColumn](https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IWorksheet.html#Syncfusion_XlsIO_IWorksheet_ImportDataColumn_System_Data_DataColumn_System_Boolean_System_Int32_System_Int32_) method.
@@ -2609,4 +2627,4 @@ Using excelEngine As ExcelEngine = New ExcelEngine()
Copy file name to clipboardExpand all lines: Document-Processing/Excel/Excel-Library/NET/Working-with-Drawing-Objects.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -924,6 +924,9 @@ A complete working example to remove comment in C# is present on [this GitHub pa
924
924
925
925
Threaded comments are a way to add and organize annotations or discussions related to specific cells in a worksheet. [IThreadedComment](https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IThreadedComment.html) object represents a threaded comment in a worksheet.
926
926
927
+
To quickly learn how to add, reply to, resolve, delete, and clear threaded comments in Excel documents, check out this video.
The following code explains how to create a threaded comment for a specific cell using [AddThreadedComment](https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IRange.html#Syncfusion_XlsIO_IRange_AddThreadedComment_System_String_System_String_System_DateTime_) method.
title: Support for changing icon set colors in Excel | Syncfusion
3
+
description: This page explains whether Syncfusion XlsIO supports changing the colors of built-in icon sets in Excel using the Syncfusion .NET Excel library (XlsIO).
4
+
platform: document-processing
5
+
control: XlsIO
6
+
documentation: UG
7
+
---
8
+
9
+
# Does XlsIO support changing the colors of built-in icon sets?
10
+
11
+
No. In Microsoft Excel, the colors of built-in icon sets used in conditional formatting (such as arrows, traffic lights, and symbols) are fixed and cannot be customized. XlsIO follows the same behavior and does not provide support for changing these icon colors programmatically. You can apply icon sets and configure their thresholds through conditional formatting, but the icon colors remain predefined by Excel.
title: How to apply styles to an Entire Excel Worksheet | Syncfusion
3
+
description: Learn how to apply font settings and fill color to an entire Excel worksheet using the Syncfusion .NET Excel library (XlsIO) in C# and VB.NET.
4
+
platform: document-processing
5
+
control: XlsIO
6
+
documentation: UG
7
+
---
8
+
9
+
# How to apply styles to the entire worksheet in Excel?
10
+
11
+
The following examples show how to apply font attributes (name and size) and fill color to an entire worksheet using C# (cross-platform and Windows-specific) and VB.NET.
12
+
13
+
{% tabs %}
14
+
{% highlight c# tabtitle="C# [Cross-platform]" %}
15
+
using (ExcelEngine excelEngine = new ExcelEngine())
title: Retrieve the first cell in the used range in Excel | Syncfusion
3
+
description: Code example to retrieve the first cell in the used range in an Excel worksheet using Syncfusion .NET Excel library (XlsIO).
4
+
platform: document-processing
5
+
control: XlsIO
6
+
documentation: UG
7
+
---
8
+
9
+
# How to retrieve the first cell in the used range in Excel?
10
+
11
+
The following code examples demonstrate retrieving the first cell in the used range of an Excel worksheet using C# (Cross-platform and Windows-specific) and VB.NET.
Dim application As IApplication = excelEngine.Excel
67
+
application.DefaultVersion = ExcelVersion.Xlsx
68
+
Dim workbook As IWorkbook = application.Workbooks.Open("Input.xlsx")
69
+
Dim worksheet As IWorksheet = workbook.Worksheets(0)
70
+
71
+
'Get the used range of the worksheet
72
+
Dim usedRange As IRange = worksheet.UsedRange
73
+
74
+
'Get the first cell from the used range
75
+
Dim firstCell As IRange = worksheet.Range(usedRange.Row, usedRange.Column)
76
+
77
+
'Get the address of the first cell
78
+
Dim firstCellAddress As String = firstCell.AddressLocal
79
+
80
+
'Display the address of the first cell
81
+
Console.WriteLine("The address of the first used cell in used range is: " & firstCellAddress)
82
+
83
+
'Save the workbook
84
+
workbook.SaveAs("Output.xlsx")
85
+
End Using
86
+
{% endhighlight %}
87
+
{% endtabs %}
88
+
89
+
A complete working example in C# is present on <ahref="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/FAQ/First%20used%20cell%20in%20used%20range/.NET/FirstUsedCellInUsedRange">this GitHub page</a>.
0 commit comments