Skip to content

Commit 122bb0c

Browse files
Merge branch 'hotfix/hotfix-v31.2.12' of https://github.com/syncfusion-content/document-processing-docs into 995361-PerformanceMetrics
2 parents 5f6223b + 4ddb30e commit 122bb0c

14 files changed

+906
-72
lines changed

Document-Processing-toc.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5001,6 +5001,7 @@
50015001
<ul>
50025002
<li><a href="/document-processing/excel/spreadsheet/blazor/getting-started-webapp">Blazor Web App</a></li>
50035003
<li><a href="/document-processing/excel/spreadsheet/blazor/getting-started">Blazor WASM App</a></li>
5004+
<li><a href="/document-processing/excel/spreadsheet/blazor/blazor-hybrid-maui-app">Blazor Hybrid MAUI App</a></li>
50045005
</ul>
50055006
</li>
50065007
<li><a href="/document-processing/excel/spreadsheet/blazor/open-and-save">Open and Save</a></li>
@@ -5867,7 +5868,7 @@
58675868
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-auto-adjust-chart-axis-minimum-and-maximum-values">Does XlsIO auto-adjust chart axis minimum and maximum values?</a>
58685869
</li>
58695870
<li>
5870-
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-prefix-pivot-table-calculated-field-headers-with-sum-of">Does XlsIO prefix PivotTable calculated field headers with "Sum of"?</a>
5871+
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-prefix-pivot-table-calculated-field-headers-with-sum-of">Does XlsIO prefix PivotTable calculated field headers with Sum of?</a>
58715872
</li>
58725873
<li>
58735874
<a href="/document-processing/excel/excel-library/net/faqs/can-pivot-tables-share-calculate-field-names">Can PivotTables share calculated field names?</a>
@@ -5878,6 +5879,18 @@
58785879
<li>
58795880
<a href="/document-processing/excel/excel-library/net/faqs/what-is-the-unit-of-row-height-and-column-width-in-Excel">What is the unit of row height and column width in Excel?</a>
58805881
</li>
5882+
<li>
5883+
<a href="/document-processing/excel/excel-library/net/faqs/how-to-apply-the-formatting-for-a-particular-column-while-importing-data-from-collection-objects">How to apply formatting to a specific column while importing data?</a>
5884+
</li>
5885+
<li>
5886+
<a href="/document-processing/excel/excel-library/net/faqs/how-to-align-the-image-inside-the-cell">How to align a picture inside a cell in an Excel worksheet?</a>
5887+
</li>
5888+
<li>
5889+
<a href="/document-processing/excel/excel-library/net/faqs/how-to-resolve-the-cannot-open-Pivot-table-source-file-error">How to resolve the cannot open pivot table source file error?</a>
5890+
</li>
5891+
<li>
5892+
<a href="/document-processing/excel/excel-library/net/faqs/how-to-extract-embedded-OLE-files-from-an-Excel-workbook-as-streams">How to extract embedded OLE files from an Excel workbook as streams?</a>
5893+
</li>
58815894
</ul>
58825895
</li>
58835896
</ul>
@@ -7036,6 +7049,7 @@
70367049
<li><a href="/document-processing/release-notes/v31.1.22">v31.1.22</a></li>
70377050
<li><a href="/document-processing/release-notes/v31.1.21">v31.1.21</a></li>
70387051
<li><a href="/document-processing/release-notes/v31.1.20">v31.1.20</a></li>
7052+
<li><a href="/document-processing/release-notes/v31.1.19">v31.1.19</a></li>
70397053
<li><a href="/document-processing/release-notes/v31.1.18">v31.1.18</a></li>
70407054
</ul>
70417055
</li>

Document-Processing/Excel/Conversions/Excel-to-PDF/NET/Performance-Metrics.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
---
2-
title: Performance Metrics of the Excel to PDF in Syncfusion XlsIO Library
3-
description: This section provides an overview of the performance capabilities of the Syncfusion Excel (XlsIO) Library.
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.
44
platform: document-processing
55
control: XlsIO
66
documentation: UG
77
---
88

9-
# Performance Metrics for Excel-to-PDF in XlsIO
9+
# Performance Metrics for Excel to PDF Conversion
1010

11-
This section evaluates the performance of the Syncfusion XlsIO library when converting an Excel file with 100,000 rows and 50 columns to PDF, handling string, DateTime, number, Boolean, and formula data types. It provides insights into the efficiency and capabilities of XlsIO for processing these data types across various platforms.
12-
13-
## Excel to PDF
14-
15-
The table below illustrates the performance of data types for Excel to PDF conversion.
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.
1612

1713
<table>
1814
<tr>
@@ -21,7 +17,7 @@ The table below illustrates the performance of data types for Excel to PDF conve
2117
<th>Sample Link</th>
2218
</tr>
2319
<tr>
24-
<td>String</td>
20+
<td>Text</td>
2521
<td>121</td>
2622
<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>
2723
</tr>
@@ -47,4 +43,4 @@ The table below illustrates the performance of data types for Excel to PDF conve
4743
</tr>
4844
</table>
4945

50-
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>.
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: 34 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +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 and reading, creating, and saving Excel files with 100,000 rows and 50 columns.. It provides insights into the efficiency and capabilities of XlsIO for processing these data types across various platforms.
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.
1212

13-
## Open and Read
13+
## Create and Save
1414

15-
The table below illustrates the performance of data types for open and read 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.
1616

17-
<table>
17+
<table>
1818
<tr>
1919
<th>Data type</th>
2020
<th>Time Taken (sec)</th>
2121
<th>Sample Link</th>
2222
</tr>
2323
<tr>
24-
<td>String</td>
25-
<td>9</td>
26-
<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>
24+
<td>Text</td>
25+
<td>13</td>
26+
<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>
2727
</tr>
2828
<tr>
2929
<td>DateTime</td>
30-
<td>5</td>
31-
<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>
30+
<td>15</td>
31+
<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>
3232
</tr>
3333
<tr>
3434
<td>Number</td>
35-
<td>6</td>
36-
<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>
35+
<td>5</td>
36+
<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>
3737
</tr>
3838
<tr>
3939
<td>Boolean</td>
40-
<td>4</td>
41-
<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>
40+
<td>5</td>
41+
<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>
4242
</tr>
4343
<tr>
4444
<td>Formula</td>
45-
<td>9</td>
46-
<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>
45+
<td>35</td>
46+
<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>
4747
</tr>
48-
</table>
49-
50-
You can find the sample used for open and read operation performance evaluation on <a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Open">this GitHub page</a>.
48+
</table>
5149

52-
## Create and Save
50+
## Load and Read
5351

54-
The table below illustrates the performance of data types for create and save operations.
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.
5553

56-
<table>
54+
<table>
5755
<tr>
5856
<th>Data type</th>
5957
<th>Time Taken (sec)</th>
6058
<th>Sample Link</th>
6159
</tr>
6260
<tr>
63-
<td>String</td>
64-
<td>13</td>
65-
<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>
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>
6664
</tr>
6765
<tr>
6866
<td>DateTime</td>
69-
<td>15</td>
70-
<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>
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>
7169
</tr>
7270
<tr>
7371
<td>Number</td>
74-
<td>5</td>
75-
<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>
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>
7674
</tr>
7775
<tr>
7876
<td>Boolean</td>
79-
<td>5</td>
80-
<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>
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>
8179
</tr>
8280
<tr>
8381
<td>Formula</td>
84-
<td>35</td>
85-
<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>
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>
8684
</tr>
87-
</table>
88-
89-
You can find the sample used for create and save operation performance evaluation on <a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Performance%20Metrics/Create">this GitHub page</a>.
85+
</table>
86+

Document-Processing/Excel/Excel-Library/NET/Working-with-Cell-or-Range-Formatting.md

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,52 @@ workbook.DetectDateTimeInValue = False
919919
{% endhighlight %}
920920
{% endtabs %}
921921

922+
N> To display the **$** symbol, apply a currency or accounting number format. Using a number format without any currency symbol does not show any currency symbol in the value.
923+
924+
{% tabs %}
925+
{% highlight c# tabtitle="C# [Cross-platform]" %}
926+
//Plain number format
927+
sheet.Range["A1"].Number = 100;
928+
sheet.Range["A1"].NumberFormat = "0.00"; //shows 100.00
929+
930+
//Currency format
931+
sheet.Range["A2"].Number = 1234.56;
932+
sheet.Range["A2"].NumberFormat = "$#,##0.00"; //shows $1,234.56
933+
934+
//Accounting format
935+
sheet.Range["A3"].Number = 234;
936+
sheet.Range["A3"].NumberFormat = "_($* #,##0.00_)"; //shows $ 234.00
937+
{% endhighlight %}
938+
939+
{% highlight c# tabtitle="C# [Windows-specific]" %}
940+
//Plain number format
941+
sheet.Range["A1"].Number = 100;
942+
sheet.Range["A1"].NumberFormat = "0.00"; //shows 100.00
943+
944+
//Currency format
945+
sheet.Range["A2"].Number = 1234.56;
946+
sheet.Range["A2"].NumberFormat = "$#,##0.00"; //shows $1,234.56
947+
948+
//Accounting format
949+
sheet.Range["A3"].Number = 234;
950+
sheet.Range["A3"].NumberFormat = "_($* #,##0.00_)"; //shows $ 234.00
951+
{% endhighlight %}
952+
953+
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
954+
'Plain Number format
955+
sheet.Range("A1").Number = 100
956+
sheet.Range("A1").NumberFormat = "0.00" 'shows 100.00
957+
958+
'Currency format
959+
sheet.Range("A2").Number = 1234.56
960+
sheet.Range("A2").NumberFormat = "$#,##0.00" 'shows $1,234.56
961+
962+
'Accounting format
963+
sheet.Range("A3").Number = 234
964+
sheet.Range("A3").NumberFormat = "_($* #,##0.00_)" 'shows $ 234.00
965+
{% endhighlight %}
966+
{% endtabs %}
967+
922968
## Number Format Detection Behavior Based on System Culture
923969

924970
In Microsoft Excel, when a value is inserted, the system's culture settings determine whether the value is interpreted as a [Text](https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IRange.html#Syncfusion_XlsIO_IRange_Text) or [Number](https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IRange.html#Syncfusion_XlsIO_IRange_Number). If it is a valid number according to the current culture, Excel automatically detects and applies a corresponding number format.
@@ -2126,4 +2172,4 @@ A complete working example to apply rich text formatting in C# is present on [th
21262172

21272173
The output of the previous code is shown as follows:
21282174

2129-
![Excel document with rich-text formatting](Working-with-Cell-or-Range-Formatting_images/Working-with-Cell-or-Range-Formatting_img6.jpeg)
2175+
![Excel document with rich-text formatting](Working-with-Cell-or-Range-Formatting_images/Working-with-Cell-or-Range-Formatting_img6.jpeg)

Document-Processing/Excel/Excel-Library/NET/create-read-edit-excel-files-in-aws-lambda.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -222,17 +222,9 @@ using (ExcelEngine excelEngine = new ExcelEngine())
222222
worksheet.Range["A9:A14"].RowHeight = 15;
223223
worksheet.Range["A15:A23"].RowHeight = 18;
224224

225-
//Saving the Excel to the MemoryStream
226-
MemoryStream stream = new MemoryStream();
225+
MemoryStream stream = new MemoryStream();
227226
workbook.SaveAs(stream);
228-
229-
//Set the position as '0'.
230-
stream.Position = 0;
231-
232-
//Download the Excel file in the browser
233-
FileStreamResult fileStreamResult = new FileStreamResult(stream, "application/excel");
234-
fileStreamResult.FileDownloadName = "Output.xlsx";
235-
return fileStreamResult;
227+
return Convert.ToBase64String(stream.ToArray());
236228
}
237229

238230
{% endhighlight %}

0 commit comments

Comments
 (0)