Skip to content

Commit 2b78882

Browse files
authored
Merge branch 'hotfix/hotfix-v32.1.19' into 991692-Sunburst
2 parents 29986e9 + 778616f commit 2b78882

439 files changed

Lines changed: 6676 additions & 4293 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Document-Processing-toc.html

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2537,7 +2537,7 @@
25372537
<a href="/document-processing/pdf/pdf-library/net/working-with-JavaScript">Working with JavaScript</a>
25382538
</li>
25392539
<li>
2540-
<a href="/document-processing/pdf/pdf-library/net/Performance-Metrics">Performance Metrics</a>
2540+
<a href="/document-processing/pdf/pdf-library/net/performance-metrics">Performance Metrics</a>
25412541
</li>
25422542
<li>
25432543
FAQ
@@ -2565,8 +2565,8 @@
25652565
</ul>
25662566
</li>
25672567
<li>
2568-
<a href="/document-processing/pdf/pdf-library/javascript/Overview">JavaScript</a>
2569-
<ul>
2568+
<a href="/document-processing/pdf/pdf-library/javascript/Overview">JavaScript</a>
2569+
<ul>
25702570
<li><a href="/document-processing/pdf/pdf-library/javascript/Overview">Overview</a></li>
25712571
<li>Getting Started
25722572
<ul>
@@ -2578,7 +2578,7 @@
25782578
<li><a href="/document-processing/pdf/pdf-library/javascript/Create-PDF-document-javascript">JavaScript</a></li>
25792579
<li><a href="/document-processing/pdf/pdf-library/javascript/Create-PDF-document-typescript">TypeScript</a></li>
25802580
</ul>
2581-
</li>
2581+
</li>
25822582
<li><a href="/document-processing/pdf/pdf-library/javascript/Open-and-save-PDF-files">Loading and Saving</a></li>
25832583
<li><a href="/document-processing/pdf/pdf-library/javascript/PDF-document">PDF Document</a></li>
25842584
<li><a href="/document-processing/pdf/pdf-library/javascript/PDF-pages">PDF Pages</a></li>
@@ -2599,9 +2599,8 @@
25992599
<li><a href="/document-processing/pdf/pdf-library/javascript/Text-Extraction">Text Extraction</a></li>
26002600
<li><a href="/document-processing/pdf/pdf-library/javascript/Image-Extraction">Image Extraction</a></li>
26012601
<li><a href="/document-processing/pdf/pdf-library/javascript/Redaction">Redaction</a></li>
2602-
</ul>
2603-
2604-
</li>
2602+
</ul>
2603+
</li>
26052604
<li>
26062605
<a href="/document-processing/pdf/pdf-library/flutter/overview">Flutter</a>
26072606
<ul>
@@ -2772,7 +2771,7 @@
27722771
<a href="/document-processing/pdf/conversions/html-to-pdf/net/features">Features</a>
27732772
</li>
27742773
<li>
2775-
<a href="/document-processing/pdf/conversions/html-to-pdf/net/Performance-Metrics">Performance Metrics</a>
2774+
<a href="/document-processing/pdf/conversions/html-to-pdf/net/performance-metrics">Performance Metrics</a>
27762775
</li>
27772776
<li>
27782777
<a href="/document-processing/pdf/conversions/html-to-pdf/net/advanced-installation">Advanced Installation</a>
@@ -4863,6 +4862,7 @@
48634862
<li><a href="/document-processing/excel/spreadsheet/angular/filter">Filtering</a></li>
48644863
<li><a href="/document-processing/excel/spreadsheet/angular/sort">Sorting</a></li>
48654864
<li><a href="/document-processing/excel/spreadsheet/angular/link">Hyperlink</a></li>
4865+
<li><a href="/document-processing/excel/spreadsheet/angular/comment">Comment</a></li>
48664866
<li><a href="/document-processing/excel/spreadsheet/angular/notes">Notes</a></li>
48674867
<li><a href="/document-processing/excel/spreadsheet/angular/clipboard">Clipboard</a></li>
48684868
<li><a href="/document-processing/excel/spreadsheet/angular/selection">Selection</a></li>
@@ -5053,6 +5053,7 @@
50535053
<li><a href="/document-processing/excel/spreadsheet/javascript-es6/filter">Filtering</a></li>
50545054
<li><a href="/document-processing/excel/spreadsheet/javascript-es6/sort">Sorting</a></li>
50555055
<li><a href="/document-processing/excel/spreadsheet/javascript-es6/link">Hyperlink</a></li>
5056+
<li><a href="/document-processing/excel/spreadsheet/javascript-es6/comment">Comment</a></li>
50565057
<li><a href="/document-processing/excel/spreadsheet/javascript-es6/notes">Notes</a></li>
50575058
<li><a href="/document-processing/excel/spreadsheet/javascript-es6/clipboard">Clipboard</a></li>
50585059
<li><a href="/document-processing/excel/spreadsheet/javascript-es6/selection">Selection</a></li>
@@ -6086,6 +6087,21 @@
60866087
<li>
60876088
<a href="/document-processing/excel/excel-library/net/faqs/how-to-set-the-first-item-in-a-list-as-the-default-selected-value-in-an-Excel-file">How to set the first item in a list as the default value in an Excel?</a>
60886089
</li>
6090+
<li>
6091+
<a href="/document-processing/excel/excel-library/net/faqs/how-to-perform-a-clean-installation-of-a-NuGet-package-from-a-local-source">How to perform a clean installation of a NuGet package from a local source?</a>
6092+
</li>
6093+
<li>
6094+
<a href="/document-processing/excel/excel-library/net/faqs/how-to-get-the-column-color">How to get the column color when column cells have different colors?</a>
6095+
</li>
6096+
<li>
6097+
<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>
6098+
</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>
60896105
</ul>
60906106
</li>
60916107
</ul>
@@ -7231,7 +7247,7 @@
72317247
<ul>
72327248
<li>
72337249
2025 Volume 4 - v32.*
7234-
<ul>
7250+
<ul><li> Weekly Nuget Release <ul><li><a href="/document-processing/release-notes/v32.1.21">v32.1.21</a></li><li><a href="/document-processing/release-notes/v32.1.20">v32.1.20</a></li></ul></li>
72357251
<li><a href="/document-processing/release-notes/v32.1.19">v32.1.19 Main release</a></li>
72367252
</ul>
72377253
</li>

Document-Processing/Excel/Conversions/Chart-to-Image/NET/Chart-to-Image-Conversion.md

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,38 @@ The following code snippet shows how to convert an Excel chart to an image using
1919
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/XlsIO-Examples/master/Chart%20to%20Image/Chart%20to%20Image/.NET/Chart%20to%20Image/Chart%20to%20Image/Program.cs,180" %}
2020
using (ExcelEngine excelEngine = new ExcelEngine())
2121
{
22-
IApplication application = excelEngine.Excel;
23-
application.DefaultVersion = ExcelVersion.Xlsx;
22+
//Initialize application
23+
IApplication application = excelEngine.Excel;
24+
25+
//Set the default version as Xlsx
26+
application.DefaultVersion = ExcelVersion.Xlsx;
2427

25-
// Initialize XlsIORenderer
26-
application.XlsIORenderer = new XlsIORenderer();
28+
//Initialize XlsIORenderer
29+
application.XlsIORenderer = new XlsIORenderer();
2730

28-
//Set converter chart image format to PNG
29-
application.XlsIORenderer.ChartRenderingOptions.ImageFormat = ExportImageFormat.Png;
31+
//Set converter chart image format to PNG or JPEG
32+
application.XlsIORenderer.ChartRenderingOptions.ImageFormat = ExportImageFormat.Png;
3033

31-
FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
32-
IWorkbook workbook = application.Workbooks.Open(inputStream);
33-
IWorksheet worksheet = workbook.Worksheets[0];
34+
//Set the chart image quality to best
35+
application.XlsIORenderer.ChartRenderingOptions.ScalingMode = ScalingMode.Best;
3436

35-
IChart chart = worksheet.Charts[0];
37+
//Open existing workbook with chart
38+
FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
39+
IWorkbook workbook = application.Workbooks.Open(inputStream);
40+
IWorksheet worksheet = workbook.Worksheets[0];
41+
42+
//Access the chart from the worksheet
43+
IChart chart = worksheet.Charts[0];
3644

37-
#region Save
38-
//Saving the workbook
39-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Image.png"), FileMode.Create, FileAccess.Write);
40-
chart.SaveAsImage(outputStream);
41-
#endregion
45+
#region Save
46+
//Exporting the chart as image
47+
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Image.png"), FileMode.Create, FileAccess.Write);
48+
chart.SaveAsImage(outputStream);
49+
#endregion
4250

43-
//Dispose streams
44-
outputStream.Dispose();
45-
inputStream.Dispose();
51+
//Dispose streams
52+
outputStream.Dispose();
53+
inputStream.Dispose();
4654
}
4755
{% endhighlight %}
4856

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: Performance Metrics for the Syncfusion Excel to PDF conversion
3+
description: This section provides benchmark results and performance metrics for converting Excel files to PDF using the Syncfusion Excel (XlsIO) library.
4+
platform: document-processing
5+
control: XlsIO
6+
documentation: UG
7+
---
8+
9+
# Performance Metrics for Excel to PDF Conversion
10+
11+
The following benchmark demonstrates the performance of the Syncfusion Excel (XlsIO) library when converting a large Excel workbook—containing 100,000 rows and 50 columns with distinct data types such as text, date and time, numbers, booleans, and formulas—into a PDF.
12+
13+
<table>
14+
<tr>
15+
<th>Data type</th>
16+
<th>Time Taken (sec)</th>
17+
<th>Sample Link</th>
18+
</tr>
19+
<tr>
20+
<td>Text</td>
21+
<td>121</td>
22+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Excel%20to%20PDF/String%20Data%20Type/.NET/String%20Data%20Type">GitHub page</a></td>
23+
</tr>
24+
<tr>
25+
<td>DateTime</td>
26+
<td>112</td>
27+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Excel%20to%20PDF/DateTime%20Data%20Type/.NET/DateTime%20Data%20Type">GitHub page</a></td>
28+
</tr>
29+
<tr>
30+
<td>Number</td>
31+
<td>107</td>
32+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Excel%20to%20PDF/Number%20Data%20Type/.NET/Number%20Data%20Type">GitHub page</a></td>
33+
</tr>
34+
<tr>
35+
<td>Boolean</td>
36+
<td>83</td>
37+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Excel%20to%20PDF/Boolean%20Data%20Type/.NET/Boolean%20Data%20Type">GitHub page</a></td>
38+
</tr>
39+
<tr>
40+
<td>Formula</td>
41+
<td>104</td>
42+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Excel%20to%20PDF/Formula%20Data%20Type/.NET/Formula%20Data%20Type">GitHub page</a></td>
43+
</tr>
44+
</table>
45+
46+
You can find the sample used for Excel to PDF conversion performance evaluation on <a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Excel%20to%20PDF">this GitHub page</a>.

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

0 commit comments

Comments
 (0)