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
14 changes: 6 additions & 8 deletions Editing Excel cells/Replace/.NET/Replace/Replace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,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 Syncfusion.XlsIO;
{% endhighlight %}
{% endtabs %}
```

Step 5: Include the below code snippet in **Program.cs** to replace all occurrences of text with different data.
{% tabs %}
{% highlight c# tabtitle="C#" %}

```csharp
using (ExcelEngine excelEngine = new ExcelEngine())
{
IApplication application = excelEngine.Excel;
Expand Down Expand Up @@ -45,5 +44,4 @@ using (ExcelEngine excelEngine = new ExcelEngine())
workbook.SaveAs(stream);
stream.Dispose();
}
{% endhighlight %}
{% endtabs %}
```
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,5 @@ using (ExcelEngine excelEngine = new ExcelEngine())
inputStream.Dispose();
}
```
{% endhighlight %}
{% endtabs %}

More information about binding data to a template marker can be found in this [documentation](https://help.syncfusion.com/document-processing/excel/excel-library/net/working-with-template-markers#bind-from-datatable) section.
Loading