Skip to content

Commit d096e62

Browse files
authored
Merge pull request #1836 from syncfusion-content/990132-Xlsb-Xlsx
UG documentation 990132: Convert .xslb to .xlsx
2 parents eee63ac + 8353b3b commit d096e62

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

Document-Processing-toc.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5790,6 +5790,9 @@
57905790
<li>
57915791
<a href="/document-processing/excel/excel-library/net/faqs/how-to-avoid-conflicts-when-using-multiple-versions-of-Syncfusion-libraries">How to avoid conflicts when using multiple versions of Syncfusion libraries?</a>
57925792
</li>
5793+
<li>
5794+
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-support-converting-an-xlsb-file-to-xlsx">Does XlsIO support converting an XLSB file to XLSX?</a>
5795+
</li>
57935796
</ul>
57945797
</li>
57955798
</ul>
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
title: Convert XLSB to XLSX using XlsIO | Syncfusion
3+
description: This page explains how to convert an XLSB file to XLSX with the Syncfusion .NET Excel (XlsIO) library.
4+
platform: document-processing
5+
control: XlsIO
6+
documentation: UG
7+
---
8+
9+
# Does XlsIO support converting an XLSB file to XLSX?
10+
11+
Yes. XlsIO supports converting an XLSB file to XLSX; however, the conversion is limited to cell values and cell styles.
12+
13+
The example below shows how to convert an XLSB file to an XLSX file.
14+
15+
{% tabs %}
16+
{% highlight c# tabtitle="C# [Cross-platform]" %}
17+
using (ExcelEngine excelEngine = new ExcelEngine())
18+
{
19+
IApplication application = excelEngine.Excel;
20+
application.DefaultVersion = ExcelVersion.Xlsx;
21+
22+
//Open an existing XLSB file
23+
IWorkbook workbook = application.Workbooks.Open("Sample.xlsb");
24+
25+
//Save the file as XLSX
26+
workbook.SaveAs("Output.xlsx");
27+
}
28+
{% endhighlight %}
29+
30+
{% highlight c# tabtitle="C# [Windows-specific]" %}
31+
using (ExcelEngine excelEngine = new ExcelEngine())
32+
{
33+
IApplication application = excelEngine.Excel;
34+
application.DefaultVersion = ExcelVersion.Xlsx;
35+
36+
//Open an existing XLSB file
37+
IWorkbook workbook = application.Workbooks.Open("Sample.xlsb");
38+
39+
//Save the file as XLSX
40+
workbook.SaveAs("Output.xlsx");
41+
}
42+
{% endhighlight %}
43+
44+
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
45+
Using excelEngine As New ExcelEngine()
46+
Dim application As IApplication = excelEngine.Excel
47+
application.DefaultVersion = ExcelVersion.Xlsx
48+
49+
' Open an existing XLSB file
50+
Dim workbook As IWorkbook = application.Workbooks.Open("Sample.xlsb")
51+
52+
' Save the file as XLSX
53+
workbook.SaveAs("Output.xlsx")
54+
End Using
55+
{% endhighlight %}
56+
{% endtabs %}

0 commit comments

Comments
 (0)