Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# How to convert a CSV to an Excel file??
# Convert a CSV to an Excel document using C#

The Syncfusion® [.NET Excel Library](https://www.syncfusion.com/document-processing/excel-framework/net/excel-library) (XlsIO) enables you to create, read, and edit Excel documents programmatically without Microsoft Excel or interop dependencies. Using this library, you can **convert a CSV to an Excel document** using C#.

## Steps to convert a CSV to an Excel document programmatically

Step 1: Create a new C# Console Application project.

Expand All @@ -7,15 +11,12 @@ Step 2: Name the project.
Step 3: Install the [Syncfusion.XlsIO.Net.Core](https://www.nuget.org/packages/Syncfusion.XlsIO.Net.Core) NuGet package as reference to your .NET Standard applications from [NuGet.org](https://www.nuget.org).

Step 4: Include the following namespaces in the **Program.cs** file.
{% tabs %}
{% highlight c# tabtitle="C#" %}
```csharp
using Syncfusion.XlsIO;
{% endhighlight %}
{% endtabs %}
```

Step 5: Include the below code snippet in **Program.cs** to convert a CSV to an Excel fil.
{% tabs %}
{% highlight c# tabtitle="C#" %}
Step 5: Include the below code snippet in **Program.cs** to convert a CSV to an Excel document.
```csharp
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
Expand All @@ -34,5 +35,6 @@ using (ExcelEngine excelEngine = new ExcelEngine())
outputStream.Dispose();
inputStream.Dispose();
}
{% endhighlight %}
{% endtabs %}
```

More information about converting a CSV to an Excel document can be found in this [documentation](https://help.syncfusion.com/document-processing/excel/conversions/csv-to-excel/net/csv-to-excel-conversion) section.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# How to apply conditional formatting in the worksheet?
# Apply conditional formatting in the worksheet using C#

The Syncfusion® [.NET Excel Library](https://www.syncfusion.com/document-processing/excel-framework/net/excel-library) (XlsIO) enables you to create, read, and edit Excel documents programmatically without Microsoft Excel or interop dependencies. Using this library, you can **apply conditional formatting in the worksheet** using C#.

## Steps to apply conditional formatting in the worksheet programmatically

Step 1: Create a new C# Console Application project.

Expand All @@ -7,16 +11,13 @@ Step 2: Name the project.
Step 3: Install the [Syncfusion.XlsIO.Net.Core](https://www.nuget.org/packages/Syncfusion.XlsIO.Net.Core) NuGet package as reference to your .NET Standard applications from [NuGet.org](https://www.nuget.org).

Step 4: Include the following namespaces in the **Program.cs** file.
{% tabs %}
{% highlight c# tabtitle="C#" %}
```csharp
using System.IO;
using Syncfusion.XlsIO;
{% endhighlight %}
{% endtabs %}
```

Step 5: Include the below code snippet in **Program.cs** to apply conditional formatting in the worksheet.
{% tabs %}
{% highlight c# tabtitle="C#" %}
```csharp
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
Expand Down Expand Up @@ -76,5 +77,6 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Dispose streams
outputStream.Dispose();
}
{% endhighlight %}
{% endtabs %}
```

More information about applying conditional formatting in the worksheet can be found in this [documentation](https://help.syncfusion.com/document-processing/excel/excel-library/net/working-with-conditional-formatting#create-a-conditional-format) section.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# How to convert an Excel workbook to a JSON file with schema?
# Convert an Excel workbook to a JSON file with schema using C#

The Syncfusion® [.NET Excel Library](https://www.syncfusion.com/document-processing/excel-framework/net/excel-library) (XlsIO) enables you to create, read, and edit Excel documents programmatically without Microsoft Excel or interop dependencies. Using this library, you can **convert an Excel workbook to a JSON file with schema** using C#.

## Steps to convert Excel workbook to a JSON file with schema programmatically

Step 1: Create a new C# Console Application project.

Expand All @@ -7,17 +11,14 @@ Step 2: Name the project.
Step 3: Install the [Syncfusion.XlsIO.Net.Core](https://www.nuget.org/packages/Syncfusion.XlsIO.Net.Core) NuGet package as reference to your .NET Standard applications from [NuGet.org](https://www.nuget.org).

Step 4: Include the following namespaces in the **Program.cs** file.
{% tabs %}
{% highlight c# tabtitle="C#" %}
```csharp
using System;
using System.IO;
using Syncfusion.XlsIO;
{% endhighlight %}
{% endtabs %}
```

Step 5: Include the below code snippet in **Program.cs** to convert an Excel workbook to a JSON file with schema.
{% tabs %}
{% highlight c# tabtitle="C#" %}
```csharp
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
Expand Down Expand Up @@ -47,5 +48,6 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Open JSON with Schema
#endregion
}
{% endhighlight %}
{% endtabs %}
```

More information about converting an Excel workbook to a JSON file with schema can be found in this [documentation](https://help.syncfusion.com/document-processing/excel/conversions/excel-to-json/overview#workbook-to-json-as-schema) section.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# How to create a chart in the worksheet?
# Create a chart in the worksheet using C#

The Syncfusion® [.NET Excel Library](https://www.syncfusion.com/document-processing/excel-framework/net/excel-library) (XlsIO) enables you to create, read, and edit Excel documents programmatically without Microsoft Excel or interop dependencies. Using this library, you can **create a chart in the worksheet** using C#.

## Steps to create a chart in the worksheet programmatically

Step 1: Create a new C# Console Application project.

Expand All @@ -7,16 +11,13 @@ Step 2: Name the project.
Step 3: Install the [Syncfusion.XlsIO.Net.Core](https://www.nuget.org/packages/Syncfusion.XlsIO.Net.Core) NuGet package as reference to your .NET Standard applications from [NuGet.org](https://www.nuget.org).

Step 4: Include the following namespaces in the **Program.cs** file.
{% tabs %}
{% highlight c# tabtitle="C#" %}
```csharp
using System.IO;
using Syncfusion.XlsIO;
{% endhighlight %}
{% endtabs %}
```

Step 5: Include the below code snippet in **Program.cs** to create a chart in the worksheet.
{% tabs %}
{% highlight c# tabtitle="C#" %}
```csharp
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
Expand Down Expand Up @@ -64,5 +65,6 @@ using (ExcelEngine excelEngine = new ExcelEngine())
outputStream.Dispose();
inputStream.Dispose();
}
{% endhighlight %}
{% endtabs %}
```

More information about creating a chart in the worksheet can be found in this [documentation](https://help.syncfusion.com/document-processing/excel/excel-library/net/working-with-charts#creating-a-chart) section.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# How to set a formula in an Excel cell?
# Set a formula in an Excel cell using C#

The Syncfusion® [.NET Excel Library](https://www.syncfusion.com/document-processing/excel-framework/net/excel-library) (XlsIO) enables you to create, read, and edit Excel documents programmatically without Microsoft Excel or interop dependencies. Using this library, you can **set a formula in an Excel cell** using C#.

## Steps to set a formula in an Excel cell programmatically

Step 1: Create a new C# Console Application project.

Expand All @@ -7,16 +11,13 @@ Step 2: Name the project.
Step 3: Install the [Syncfusion.XlsIO.Net.Core](https://www.nuget.org/packages/Syncfusion.XlsIO.Net.Core) NuGet package as reference to your .NET Standard applications from [NuGet.org](https://www.nuget.org).

Step 4: Include the following namespaces in the **Program.cs** file.
{% tabs %}
{% highlight c# tabtitle="C#" %}
```csharp
using System.IO;
using Syncfusion.XlsIO;
{% endhighlight %}
{% endtabs %}
```

Step 5: Include the below code snippet in **Program.cs** to set a formula in an Excel cell.
{% tabs %}
{% highlight c# tabtitle="C#" %}
```csharp
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
Expand All @@ -42,5 +43,6 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Dispose streams
outputStream.Dispose();
}
{% endhighlight %}
{% endtabs %}
```

More information about setting a formula in an Excel cell can be found in this [documentation](https://help.syncfusion.com/document-processing/excel/excel-library/net/working-with-formulas#writing-a-formula) section.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# How to create a table in the worksheet?
# Create a table in the worksheet using C#

The Syncfusion® [.NET Excel Library](https://www.syncfusion.com/document-processing/excel-framework/net/excel-library) (XlsIO) enables you to create, read, and edit Excel documents programmatically without Microsoft Excel or interop dependencies. Using this library, you can **create a table in the worksheet** using C#.

## Steps to create a table in the worksheet programmatically

Step 1: Create a new C# Console Application project.

Expand All @@ -7,17 +11,14 @@ Step 2: Name the project.
Step 3: Install the [Syncfusion.XlsIO.Net.Core](https://www.nuget.org/packages/Syncfusion.XlsIO.Net.Core) NuGet package as reference to your .NET Standard applications from [NuGet.org](https://www.nuget.org).

Step 4: Include the following namespaces in the **Program.cs** file.
{% tabs %}
{% highlight c# tabtitle="C#" %}
```csharp
using System;
using System.IO;
using Syncfusion.XlsIO;
{% endhighlight %}
{% endtabs %}
```

Step 5: Include the below code snippet in **Program.cs** to create a table in the worksheet.
{% tabs %}
{% highlight c# tabtitle="C#" %}
```csharp
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
Expand All @@ -39,5 +40,6 @@ using (ExcelEngine excelEngine = new ExcelEngine())
inputStream.Dispose();
outputStream.Dispose();
}
{% endhighlight %}
{% endtabs %}
```

More information about creating a table in the worksheet can be found in this [documentation](https://help.syncfusion.com/document-processing/excel/excel-library/net/working-with-excel-tables#creating-a-table) section.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# How to set list data validation in Excel?
# Set list data validation in an Excel document using C#

The Syncfusion® [.NET Excel Library](https://www.syncfusion.com/document-processing/excel-framework/net/excel-library) (XlsIO) enables you to create, read, and edit Excel documents programmatically without Microsoft Excel or interop dependencies. Using this library, you can **set list data validation in an Excel document** using C#.

## Steps to set list data validation in an Excel document programmatically

Step 1: Create a new C# Console Application project.

Expand All @@ -7,16 +11,12 @@ Step 2: Name the project.
Step 3: Install the [Syncfusion.XlsIO.Net.Core](https://www.nuget.org/packages/Syncfusion.XlsIO.Net.Core) NuGet package as reference to your .NET Standard applications from [NuGet.org](https://www.nuget.org).

Step 4: Include the following namespaces in the **Program.cs** file.
{% tabs %}
{% highlight c# tabtitle="C#" %}
```csharp
using System.IO;
using Syncfusion.XlsIO;
{% endhighlight %}
{% endtabs %}

Step 5: Include the below code snippet in **Program.cs** to set list data validation in Excel.
{% tabs %}
{% highlight c# tabtitle="C#" %}
```
Step 5: Include the below code snippet in **Program.cs** to set list data validation in an Excel document.
```csharp
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
Expand Down Expand Up @@ -46,5 +46,6 @@ using (ExcelEngine excelEngine = new ExcelEngine())
//Dispose streams
outputStream.Dispose();
}
{% endhighlight %}
{% endtabs %}
```

More information about setting list data validation in an Excel document can be found in this [documentation](https://help.syncfusion.com/document-processing/excel/excel-library/net/working-with-data-validation#list-validation) section.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# How to convert an Excel file to CSV?
# Convert an Excel document to CSV using C#

The Syncfusion® [.NET Excel Library](https://www.syncfusion.com/document-processing/excel-framework/net/excel-library) (XlsIO) enables you to create, read, and edit Excel documents programmatically without Microsoft Excel or interop dependencies. Using this library, you can **convert an Excel document to CSV** using C#.

## Steps to convert an Excel document to CSV programmatically

Step 1: Create a new C# Console Application project.

Expand All @@ -7,15 +11,12 @@ Step 2: Name the project.
Step 3: Install the [Syncfusion.XlsIO.Net.Core](https://www.nuget.org/packages/Syncfusion.XlsIO.Net.Core) NuGet package as reference to your .NET Standard applications from [NuGet.org](https://www.nuget.org).

Step 4: Include the following namespaces in the **Program.cs** file.
{% tabs %}
{% highlight c# tabtitle="C#" %}
```csharp
using Syncfusion.XlsIO;
{% endhighlight %}
{% endtabs %}
```

Step 5: Include the below code snippet in **Program.cs** to convert an Excel file to CSV.
{% tabs %}
{% highlight c# tabtitle="C#" %}
Step 5: Include the below code snippet in **Program.cs** to convert an Excel document to CSV.
```csharp
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
Expand All @@ -31,5 +32,6 @@ using (ExcelEngine excelEngine = new ExcelEngine())
outputStream.Dispose();
inputStream.Dispose();
}
{% endhighlight %}
{% endtabs %}
```

More information about converting an Excel document to CSV can be found in this [documentation](https://help.syncfusion.com/document-processing/excel/conversions/excel-to-csv/net/excel-to-csv-conversion) section.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# How to convert an Excel workbook to PDF?
# Convert an Excel workbook to PDF using C#

The Syncfusion® [.NET Excel Library](https://www.syncfusion.com/document-processing/excel-framework/net/excel-library) (XlsIO) enables you to create, read, and edit Excel documents programmatically without Microsoft Excel or interop dependencies. Using this library, you can **convert an Excel workbook to PDF** using C#.

## Steps to convert an Excel workbook to PDF programmatically

Step 1: Create a new C# Console Application project.

Expand All @@ -7,18 +11,15 @@ Step 2: Name the project.
Step 3: Install the [Syncfusion.XlsIO.Net.Core](https://www.nuget.org/packages/Syncfusion.XlsIO.Net.Core) NuGet package as reference to your .NET Standard applications from [NuGet.org](https://www.nuget.org).

Step 4: Include the following namespaces in the **Program.cs** file.
{% tabs %}
{% highlight c# tabtitle="C#" %}
```csharp
using System.IO;
using Syncfusion.XlsIO;
using Syncfusion.XlsIORenderer;
using Syncfusion.Pdf;
{% endhighlight %}
{% endtabs %}
```

Step 5: Include the below code snippet in **Program.cs** to convert an Excel workbook to PDF.
{% tabs %}
{% highlight c# tabtitle="C#" %}
```csharp
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
Expand All @@ -42,5 +43,6 @@ using (ExcelEngine excelEngine = new ExcelEngine())
outputStream.Dispose();
inputStream.Dispose();
}
{% endhighlight %}
{% endtabs %}
```

More information about converting an Excel workbook to PDF can be found in this [documentation](https://help.syncfusion.com/document-processing/excel/conversions/excel-to-pdf/net/excel-to-pdf-conversion#workbook-to-pdf) section.
Loading
Loading