Skip to content

Commit 416d33d

Browse files
Merge branch 'development' into EJ2-999367-ug2
2 parents 650b56b + bf7c57e commit 416d33d

39 files changed

Lines changed: 2025 additions & 413 deletions

File tree

Document-Processing-toc.html

Lines changed: 5 additions & 2 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
@@ -2772,7 +2772,7 @@
27722772
<a href="/document-processing/pdf/conversions/html-to-pdf/net/features">Features</a>
27732773
</li>
27742774
<li>
2775-
<a href="/document-processing/pdf/conversions/html-to-pdf/net/Performance-Metrics">Performance Metrics</a>
2775+
<a href="/document-processing/pdf/conversions/html-to-pdf/net/performance-metrics">Performance Metrics</a>
27762776
</li>
27772777
<li>
27782778
<a href="/document-processing/pdf/conversions/html-to-pdf/net/advanced-installation">Advanced Installation</a>
@@ -6093,6 +6093,9 @@
60936093
<li>
60946094
<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>
60956095
</li>
6096+
<li>
6097+
<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>
6098+
</li>
60966099
</ul>
60976100
</li>
60986101
</ul>

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>.
Lines changed: 33 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -1,187 +1,86 @@
11
---
2-
title: Performance Metrics of the Syncfusion Excel (XlsIO) Library
3-
description: This section provides an overview of the performance capabilities of the Syncfusion Excel (XlsIO) Library.
2+
title: Performance Metrics for Syncfusion Excel (XlsIO) Library
3+
description: This section provides benchmark results and insights into the performance capabilities of the Syncfusion Excel (XlsIO) library across various operations.
44
platform: document-processing
55
control: XlsIO
66
documentation: UG
77
---
88

99
# Performance Metrics in Excel (XlsIO) Library
1010

11-
This section evaluates the performance of the Syncfusion XlsIO library when handling String, DateTime, Number, Boolean, and Formula data types during operations such as opening, reading, creating, and saving Excel files. It provides insights into the efficiency and capabilities of XlsIO for processing these data types across various platforms.
12-
13-
## Open and Read
14-
15-
The table below illustrates the performance of data types for open operations.
16-
17-
<table>
18-
<tr>
19-
<th>Data types</th>
20-
<th>Test case Matrix (Open)</th>
21-
<th>XlsIO (ms)</th>
22-
<th>Sample</th>
23-
</tr>
24-
<tr>
25-
<td>String</td>
26-
<td>150 rows * 10000 columns</td>
27-
<td>2213</td>
28-
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Open/String%20Data%20Type/.NET/String%20Data%20Type">GitHub page</a></td>
29-
</tr>
30-
<tr>
31-
<td>DateTime</td>
32-
<td>150 rows * 10000 columns</td>
33-
<td>1369</td>
34-
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Open/DateTime%20Data%20Type/.NET/DateTime%20Data%20Type">GitHub page</a></td>
35-
</tr>
36-
<tr>
37-
<td>Number</td>
38-
<td>150 rows * 10000 columns</td>
39-
<td>1151</td>
40-
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Open/Number%20Data%20Type/.NET/Number%20Data%20Type">GitHub page</a></td>
41-
</tr>
42-
<tr>
43-
<td>Boolean</td>
44-
<td>150 rows * 10000 columns</td>
45-
<td>1173</td>
46-
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Open/Boolean%20Data%20Type/.NET/Boolean%20Data%20Type">GitHub page</a></td>
47-
</tr>
48-
<tr>
49-
<td>Formula</td>
50-
<td>150 rows * 10000 columns</td>
51-
<td>1545</td>
52-
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Open/Formula%20Data%20Type/.NET/Formula%20Data%20Type">GitHub page</a></td>
53-
</tr>
54-
</table>
55-
56-
You can find the sample used for open operation performance evaluation on <a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Open">this GitHub page</a>.
57-
58-
The table below illustrates the performance of data types for read operations.
59-
60-
<table>
61-
<tr>
62-
<th>Data types</th>
63-
<th>Test case Matrix (Read)</th>
64-
<th>XlsIO (ms)</th>
65-
<th>Sample</th>
66-
</tr>
67-
<tr>
68-
<td>String</td>
69-
<td>150 rows * 10000 columns</td>
70-
<td>139</td>
71-
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Read/String%20Data%20Type/.NET/String%20Data%20Type">GitHub page</a></td>
72-
</tr>
73-
<tr>
74-
<td>DateTime</td>
75-
<td>150 rows * 10000 columns</td>
76-
<td>506</td>
77-
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Read/DateTime%20Data%20Type/.NET/DateTime%20Data%20Type">GitHub page</a></td>
78-
</tr>
79-
<tr>
80-
<td>Number</td>
81-
<td>150 rows * 10000 columns</td>
82-
<td>294</td>
83-
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Read/Number%20Data%20Type/.NET/Number%20Data%20Type">GitHub page</a></td>
84-
</tr>
85-
<tr>
86-
<td>Boolean</td>
87-
<td>150 rows * 10000 columns</td>
88-
<td>99</td>
89-
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Read/Boolean%20Data%20Type/.NET/Boolean%20Data%20Type">GitHub page</a></td>
90-
</tr>
91-
<tr>
92-
<td>Formula</td>
93-
<td>150 rows * 10000 columns</td>
94-
<td>165</td>
95-
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Read/Formula%20Data%20Type/.NET/Formula%20Data%20Type">GitHub page</a></td>
96-
</tr>
97-
</table>
98-
99-
You can find the sample used for read operation performance evaluation on <a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Read">this GitHub page</a>.
11+
This section evaluates the performance of the Syncfusion Excel (XlsIO) library when handling text, date and time, number, boolean, and formula data types during operations such as reading and creating Excel documents.
10012

10113
## Create and Save
10214

103-
The table below illustrates the performance of data types for create operations.
15+
The table below illustrates the performance of creating and saving an Excel document containing 100,000 rows and 50 columns for different data types.
10416

105-
<table>
17+
<table>
10618
<tr>
107-
<th>Data types</th>
108-
<th>Test case Matrix (Create)</th>
109-
<th>XlsIO (ms)</th>
110-
<th>Sample</th>
19+
<th>Data type</th>
20+
<th>Time Taken (sec)</th>
21+
<th>Sample Link</th>
11122
</tr>
11223
<tr>
113-
<td>String</td>
114-
<td>150 rows * 10000 columns</td>
115-
<td>1177</td>
24+
<td>Text</td>
25+
<td>13</td>
11626
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Create/String%20Data%20Type/.NET/String%20Data%20Type">GitHub page</a></td>
11727
</tr>
11828
<tr>
11929
<td>DateTime</td>
120-
<td>150 rows * 10000 columns</td>
121-
<td>2301</td>
30+
<td>15</td>
12231
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Create/DateTime%20Data%20Type/.NET/DateTime%20Data%20Type">GitHub page</a></td>
12332
</tr>
12433
<tr>
12534
<td>Number</td>
126-
<td>150 rows * 10000 columns</td>
127-
<td>436</td>
35+
<td>5</td>
12836
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Create/Number%20Data%20Type/.NET/Number%20Data%20Type">GitHub page</a></td>
12937
</tr>
13038
<tr>
13139
<td>Boolean</td>
132-
<td>150 rows * 10000 columns</td>
133-
<td>422</td>
40+
<td>5</td>
13441
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Create/Boolean%20Data%20Type/.NET/Boolean%20Data%20Type">GitHub page</a></td>
13542
</tr>
13643
<tr>
13744
<td>Formula</td>
138-
<td>150 rows * 10000 columns</td>
139-
<td>4089</td>
45+
<td>35</td>
14046
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Create/Formula%20Data%20Type/.NET/Formula%20Data%20Type">GitHub page</a></td>
14147
</tr>
14248
</table>
143-
144-
You can find the sample used for create operation performance evaluation on <a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Create">this GitHub page</a>.
14549

146-
The table below illustrates the performance of data types for save operations.
50+
## Load and Read
51+
52+
The table below illustrates the performance of loading and reading cell values from an Excel document with 100,000 rows and 50 columns for different data types.
14753

14854
<table>
14955
<tr>
150-
<th>Data types</th>
151-
<th>Test case Matrix (Save)</th>
152-
<th>XlsIO (ms)</th>
153-
<th>Sample</th>
56+
<th>Data type</th>
57+
<th>Time Taken (sec)</th>
58+
<th>Sample Link</th>
15459
</tr>
15560
<tr>
156-
<td>String</td>
157-
<td>150 rows * 10000 columns</td>
158-
<td>1422</td>
159-
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Save/String%20Data%20Type/.NET/String%20Data%20Type">GitHub page</a></td>
61+
<td>Text</td>
62+
<td>9</td>
63+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Open/String%20Data%20Type/.NET/String%20Data%20Type">GitHub page</a></td>
16064
</tr>
16165
<tr>
16266
<td>DateTime</td>
163-
<td>150 rows * 10000 columns</td>
164-
<td>1270</td>
165-
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Save/DateTime%20Data%20Type/.NET/DateTime%20Data%20Type">GitHub page</a></td>
67+
<td>5</td>
68+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Open/DateTime%20Data%20Type/.NET/DateTime%20Data%20Type">GitHub page</a></td>
16669
</tr>
16770
<tr>
16871
<td>Number</td>
169-
<td>150 rows * 10000 columns</td>
170-
<td>916</td>
171-
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Save/Number%20Data%20Type/.NET/Number%20Data%20Type">GitHub page</a></td>
72+
<td>6</td>
73+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Open/Number%20Data%20Type/.NET/Number%20Data%20Type">GitHub page</a></td>
17274
</tr>
17375
<tr>
17476
<td>Boolean</td>
175-
<td>150 rows * 10000 columns</td>
176-
<td>781</td>
177-
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Save/Boolean%20Data%20Type/.NET/Boolean%20Data%20Type">GitHub page</a></td>
77+
<td>4</td>
78+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Open/Boolean%20Data%20Type/.NET/Boolean%20Data%20Type">GitHub page</a></td>
17879
</tr>
17980
<tr>
18081
<td>Formula</td>
181-
<td>150 rows * 10000 columns</td>
182-
<td>1222</td>
183-
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Save/Formula%20Data%20Type/.NET/Formula%20Data%20Type">GitHub page</a></td>
82+
<td>9</td>
83+
<td><a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Open/Formula%20Data%20Type/.NET/Formula%20Data%20Type">GitHub page</a></td>
18484
</tr>
185-
</table>
186-
187-
You can find the sample used for save operation performance evaluation on <a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Save">this GitHub page</a>.
85+
</table>
86+

0 commit comments

Comments
 (0)