Skip to content

Commit 1555612

Browse files
Merge branch 'hotfix/hotfix-v31.2.12' of https://github.com/syncfusion-content/document-processing-docs into AddMissingUgHF
2 parents 0aa51a5 + d096e62 commit 1555612

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
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)