Skip to content

Commit 42cab41

Browse files
Merge pull request #2060 from Syncfusion-Content/hotfix/hotfix-v32.1.19
DOCINFRA-2341_merged_using_automation
2 parents b2ce4b5 + 5c887d2 commit 42cab41

4 files changed

Lines changed: 150 additions & 34 deletions

File tree

Document-Processing-toc.html

Lines changed: 39 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2565,40 +2565,40 @@
25652565
</ul>
25662566
</li>
25672567
<li>
2568-
<a href="/document-processing/pdf/pdf-library/javascript/overview">JavaScript</a>
2568+
<a href="/document-processing/pdf/pdf-library/javascript/Overview">JavaScript</a>
25692569
<ul>
2570-
<li><a href="/document-processing/pdf/pdf-library/javascript/overview">Overview</a></li>
2571-
<li>Getting Started
2572-
<ul>
2573-
<li><a href="/document-processing/pdf/pdf-library/javascript/create-pdf-document-asp-net-core">ASP.NET Core</a></li>
2574-
<li><a href="/document-processing/pdf/pdf-library/javascript/create-pdf-document-asp-net-mvc">ASP.NET MVC</a></li>
2575-
<li><a href="/document-processing/pdf/pdf-library/javascript/create-pdf-document-angular">Angular</a></li>
2576-
<li><a href="/document-processing/pdf/pdf-library/javascript/create-pdf-document-react">React</a></li>
2577-
<li><a href="/document-processing/pdf/pdf-library/javascript/create-pdf-document-vue">Vue</a></li>
2578-
<li><a href="/document-processing/pdf/pdf-library/javascript/create-pdf-document-javascript">JavaScript</a></li>
2579-
<li><a href="/document-processing/pdf/pdf-library/javascript/create-pdf-document-typescript">TypeScript</a></li>
2580-
</ul>
2581-
</li>
2582-
<li><a href="/document-processing/pdf/pdf-library/javascript/open-and-save-pdf-files">Loading and Saving</a></li>
2583-
<li><a href="/document-processing/pdf/pdf-library/javascript/pdf-document">PDF Document</a></li>
2584-
<li><a href="/document-processing/pdf/pdf-library/javascript/pdf-pages">PDF Pages</a></li>
2585-
<li><a href="/document-processing/pdf/pdf-library/javascript/text">Text</a></li>
2586-
<li><a href="/document-processing/pdf/pdf-library/javascript/lists">Lists</a></li>
2587-
<li><a href="/document-processing/pdf/pdf-library/javascript/images">Images</a></li>
2588-
<li><a href="/document-processing/pdf/pdf-library/javascript/templates">Templates</a></li>
2589-
<li><a href="/document-processing/pdf/pdf-library/javascript/shapes">Shapes</a></li>
2590-
<li><a href="/document-processing/pdf/pdf-library/javascript/annotations">Annotations</a></li>
2591-
<li><a href="/document-processing/pdf/pdf-library/javascript/form-fields">Form Fields</a></li>
2592-
<li><a href="/document-processing/pdf/pdf-library/javascript/digital-signature">Digital Signature</a></li>
2593-
<li><a href="/document-processing/pdf/pdf-library/javascript/bookmarks">Bookmarks</a></li>
2594-
<li><a href="/document-processing/pdf/pdf-library/javascript/hyperlinks">Hyperlinks</a></li>
2595-
<li><a href="/document-processing/pdf/pdf-library/javascript/layers">Layers</a></li>
2596-
<li><a href="/document-processing/pdf/pdf-library/javascript/watermarks">Watermarks</a></li>
2597-
<li><a href="/document-processing/pdf/pdf-library/javascript/merge-document">Merge PDF</a></li>
2598-
<li><a href="/document-processing/pdf/pdf-library/javascript/split-documents">Split PDF</a></li>
2599-
<li><a href="/document-processing/pdf/pdf-library/javascript/text-extraction">Text Extraction</a></li>
2600-
<li><a href="/document-processing/pdf/pdf-library/javascript/image-extraction">Image Extraction</a></li>
2601-
<li><a href="/document-processing/pdf/pdf-library/javascript/redaction">Redaction</a></li>
2570+
<li><a href="/document-processing/pdf/pdf-library/javascript/Overview">Overview</a></li>
2571+
<li>Getting Started
2572+
<ul>
2573+
<li><a href="/document-processing/pdf/pdf-library/javascript/Create-PDF-document-asp-net-core">ASP.NET Core</a></li>
2574+
<li><a href="/document-processing/pdf/pdf-library/javascript/Create-PDF-document-asp-net-mvc">ASP.NET MVC</a></li>
2575+
<li><a href="/document-processing/pdf/pdf-library/javascript/Create-PDF-document-angular">Angular</a></li>
2576+
<li><a href="/document-processing/pdf/pdf-library/javascript/Create-PDF-document-react">React</a></li>
2577+
<li><a href="/document-processing/pdf/pdf-library/javascript/Create-PDF-document-vue">Vue</a></li>
2578+
<li><a href="/document-processing/pdf/pdf-library/javascript/Create-PDF-document-javascript">JavaScript</a></li>
2579+
<li><a href="/document-processing/pdf/pdf-library/javascript/Create-PDF-document-typescript">TypeScript</a></li>
2580+
</ul>
2581+
</li>
2582+
<li><a href="/document-processing/pdf/pdf-library/javascript/Open-and-save-PDF-files">Loading and Saving</a></li>
2583+
<li><a href="/document-processing/pdf/pdf-library/javascript/PDF-document">PDF Document</a></li>
2584+
<li><a href="/document-processing/pdf/pdf-library/javascript/PDF-pages">PDF Pages</a></li>
2585+
<li><a href="/document-processing/pdf/pdf-library/javascript/Text">Text</a></li>
2586+
<li><a href="/document-processing/pdf/pdf-library/javascript/Lists">Lists</a></li>
2587+
<li><a href="/document-processing/pdf/pdf-library/javascript/Images">Images</a></li>
2588+
<li><a href="/document-processing/pdf/pdf-library/javascript/Templates">Templates</a></li>
2589+
<li><a href="/document-processing/pdf/pdf-library/javascript/Shapes">Shapes</a></li>
2590+
<li><a href="/document-processing/pdf/pdf-library/javascript/Annotations">Annotations</a></li>
2591+
<li><a href="/document-processing/pdf/pdf-library/javascript/FormFields">Form Fields</a></li>
2592+
<li><a href="/document-processing/pdf/pdf-library/javascript/DigitalSignature">Digital Signature</a></li>
2593+
<li><a href="/document-processing/pdf/pdf-library/javascript/Bookmarks">Bookmarks</a></li>
2594+
<li><a href="/document-processing/pdf/pdf-library/javascript/HyperLinks">Hyperlinks</a></li>
2595+
<li><a href="/document-processing/pdf/pdf-library/javascript/Layers">Layers</a></li>
2596+
<li><a href="/document-processing/pdf/pdf-library/javascript/Watermarks">Watermarks</a></li>
2597+
<li><a href="/document-processing/pdf/pdf-library/javascript/Merge-Document">Merge PDF</a></li>
2598+
<li><a href="/document-processing/pdf/pdf-library/javascript/Split-Documents">Split PDF</a></li>
2599+
<li><a href="/document-processing/pdf/pdf-library/javascript/Text-Extraction">Text Extraction</a></li>
2600+
<li><a href="/document-processing/pdf/pdf-library/javascript/Image-Extraction">Image Extraction</a></li>
2601+
<li><a href="/document-processing/pdf/pdf-library/javascript/Redaction">Redaction</a></li>
26022602
</ul>
26032603
</li>
26042604
<li>
@@ -6096,6 +6096,12 @@
60966096
<li>
60976097
<a href="/document-processing/excel/excel-library/net/faqs/how-to-preserve-leading-zeros-when-importing-data-to-excel">How to preserve leading zeros when importing DataTable to Excel?</a>
60986098
</li>
6099+
<li>
6100+
<a href="/document-processing/excel/excel-library/net/faqs/how-to-retrieve-the-first-cell-in-the-used-range-in-Excel">How to retrieve the first cell in the used range in Excel?</a>
6101+
</li>
6102+
<li>
6103+
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-support-changing-the-colors-of-built-in-icon-sets">Does XlsIO support changing the colors of built-in icon sets?</a>
6104+
</li>
60996105
</ul>
61006106
</li>
61016107
</ul>

Document-Processing/Excel/Excel-Library/NET/Import-Export/Import-to-Excel.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,24 @@ A complete working example to import data from DataTable to Excel in C# is prese
7575

7676
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.
7777

78+
### Preserve Data Types
79+
80+
To preserve data types when importing a DataTable into an Excel worksheet, set the **preserveTypes** parameter of the <a href="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**.
81+
82+
{% tabs %}
83+
{% highlight c# tabtitle="C# [Cross-platform]" %}
84+
worksheet.ImportDataTable(table, false, 1, 1, true); // preserveTypes = true
85+
{% endhighlight %}
86+
87+
{% highlight c# tabtitle="C# [Windows-specific]" %}
88+
worksheet.ImportDataTable(table, false, 1, 1, true); // preserveTypes = true
89+
{% endhighlight %}
90+
91+
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
92+
worksheet.ImportDataTable(table, False, 1, 1, True) ' preserveTypes = True
93+
{% endhighlight %}
94+
{% endtabs %}
95+
7896
## DataColumn to Excel
7997

8098
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()
26092627
workbook.SaveAs("Output.xlsx")
26102628
End Using
26112629
{% endhighlight %}
2612-
{% endtabs %}
2630+
{% endtabs %}

Document-Processing/Excel/Excel-Library/NET/Working-with-Drawing-Objects.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,9 @@ A complete working example to remove comment in C# is present on [this GitHub pa
924924

925925
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.
926926

927+
To quickly learn how to add, reply to, resolve, delete, and clear threaded comments in Excel documents, check out this video.
928+
{% youtube "https://www.youtube.com/watch?v=h8x62gZLxng" %}
929+
927930
### Create
928931

929932
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.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
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.
12+
13+
{% tabs %}
14+
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/XlsIO-Examples/master/FAQ/First%20used%20cell%20in%20used%20range/.NET/FirstUsedCellInUsedRange/FirstUsedCellInUsedRange/Program.cs,180" %}
15+
using (ExcelEngine excelEngine = new ExcelEngine())
16+
{
17+
IApplication application = excelEngine.Excel;
18+
application.DefaultVersion = ExcelVersion.Xlsx;
19+
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/Input.xlsx"));
20+
IWorksheet worksheet = workbook.Worksheets[0];
21+
22+
//Get the used range of the worksheet
23+
IRange usedRange = worksheet.UsedRange;
24+
25+
//Get the first cell from the used range
26+
IRange firstCell = worksheet.Range[usedRange.Row, usedRange.Column];
27+
28+
//Get the address of the first cell
29+
string firstCellAddress = firstCell.AddressLocal;
30+
31+
//Display the address of the first cell
32+
Console.WriteLine("The address of the first used cell in used range is: " + firstCellAddress);
33+
34+
//Save the workbook
35+
workbook.SaveAs(Path.GetFullPath(@"Output/Output.xlsx"));
36+
}
37+
{% endhighlight %}
38+
39+
{% highlight c# tabtitle="C# [Windows-specific]" %}
40+
using (ExcelEngine excelEngine = new ExcelEngine())
41+
{
42+
IApplication application = excelEngine.Excel;
43+
application.DefaultVersion = ExcelVersion.Xlsx;
44+
IWorkbook workbook = application.Workbooks.Open("Input.xlsx");
45+
IWorksheet worksheet = workbook.Worksheets[0];
46+
47+
//Get the used range of the worksheet
48+
IRange usedRange = worksheet.UsedRange;
49+
50+
//Get the first cell from the used range
51+
IRange firstCell = worksheet.Range[usedRange.Row, usedRange.Column];
52+
53+
//Get the address of the first cell
54+
string firstCellAddress = firstCell.AddressLocal;
55+
56+
//Display the address of the first cell
57+
Console.WriteLine("The address of the first used cell in used range is: " + firstCellAddress);
58+
59+
//Save the workbook
60+
workbook.SaveAs("Output.xlsx");
61+
}
62+
{% endhighlight %}
63+
64+
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
65+
Using excelEngine As New ExcelEngine()
66+
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 <a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/FAQ/First%20used%20cell%20in%20used%20range/.NET/FirstUsedCellInUsedRange">this GitHub page</a>.

0 commit comments

Comments
 (0)