From a5c9ef06f386c8538a0e63a05f3411382fae7e22 Mon Sep 17 00:00:00 2001 From: VinothSF5015 Date: Wed, 6 May 2026 19:19:39 +0530 Subject: [PATCH 1/2] 997601 - Content Added --- Document-Processing-toc.html | 5 +- ...v-file-with-a-tab-delimiter-using-xlsio.md | 72 +++++++++++++++++++ 2 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 Document-Processing/Excel/Excel-Library/NET/faqs/how-to-open-a-csv-file-with-a-tab-delimiter-using-xlsio.md diff --git a/Document-Processing-toc.html b/Document-Processing-toc.html index b262ea62d..69ee99a22 100644 --- a/Document-Processing-toc.html +++ b/Document-Processing-toc.html @@ -6773,9 +6773,12 @@
  • How to set invert if negative option for a chart using XLsIO?
  • -
  • +
  • How to merge cells preserving topleft value and format in XlsIO?
  • +
  • + How to open a CSV file with a tab delimiter using XlsIO? +
  • diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-open-a-csv-file-with-a-tab-delimiter-using-xlsio.md b/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-open-a-csv-file-with-a-tab-delimiter-using-xlsio.md new file mode 100644 index 000000000..d8f362228 --- /dev/null +++ b/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-open-a-csv-file-with-a-tab-delimiter-using-xlsio.md @@ -0,0 +1,72 @@ +--- +title: How to open a CSV file with a tab delimiter using XlsIO? | Syncfusion +description: This FAQ explains how to open a CSV file with a tab delimiter using Syncfusion XlsIO Excel library by passing the delimiter as an argument to the Open method. +platform: document-processing +control: XlsIO +documentation: UG +--- + +# How to open a CSV file with a tab delimiter using XlsIO? + +Syncfusion XlsIO allows you to open CSV files with custom delimiters, including tab delimiters. When opening a CSV file, you can specify the delimiter character as the second parameter in the [Open](https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.IWorkbooks.html#Syncfusion_XlsIO_IWorkbooks_Open_System_String_Syncfusion_XlsIO_ExcelOpenType_) method. + +The following code example illustrates how to open a CSV file with a tab delimiter using XlsIO. + +{% tabs %} +{% highlight c# tabtitle="C# [Cross-platform]" %} +using (ExcelEngine excelEngine = new ExcelEngine()) +{ + // Instantiate the Excel application object + IApplication application = excelEngine.Excel; + + // Assign default application version + application.DefaultVersion = ExcelVersion.Xlsx; + + // Open a CSV file with a tab delimiter ("\t") + IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.csv"), "\t"); + + // Access the first worksheet from the workbook + IWorksheet worksheet = workbook.Worksheets[0]; + + // Save the workbook to disk in XLSX format + workbook.SaveAs(Path.GetFullPath(@"Output/Output.xlsx")); +} +{% highlight c# tabtitle="C# [Windows-specific]" %} +using (ExcelEngine excelEngine = new ExcelEngine()) +{ + // Instantiate the Excel application object + IApplication application = excelEngine.Excel; + + // Assign default application version + application.DefaultVersion = ExcelVersion.Xlsx; + + // Open a CSV file with a tab delimiter ("\t") + IWorkbook workbook = application.Workbooks.Open("InputTemplate.csv", "\t"); + + // Access the first worksheet from the workbook + IWorksheet worksheet = workbook.Worksheets[0]; + + // Save the workbook to disk in XLSX format + workbook.SaveAs("Output.xlsx"); +} +{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} +Using excelEngine As New ExcelEngine() + ' Instantiate the Excel application object + Dim application As IApplication = excelEngine.Excel + + ' Assign default application version + application.DefaultVersion = ExcelVersion.Xlsx + + ' Open a CSV file with a tab delimiter ("\t") + Dim workbook As IWorkbook = application.Workbooks.Open("nputTemplate.csv", "\t") + + ' Access the first worksheet from the workbook + Dim worksheet As IWorksheet = workbook.Worksheets(0) + + ' Save the workbook to disk in XLSX format + workbook.SaveAs("Output.xlsx") +End Using +{% highlight %} +{% endtabs %} + +A complete working example in C# is present on this GitHub page. \ No newline at end of file From b01b82f01fdcbe13d811a3d535377d8f1d8d588a Mon Sep 17 00:00:00 2001 From: VinothSF5015 Date: Wed, 6 May 2026 19:32:33 +0530 Subject: [PATCH 2/2] Update CSV file handling documentation with code examples Added code examples for saving workbooks in XLSX format using C#, VB.NET, and included proper highlight formatting. --- ...to-open-a-csv-file-with-a-tab-delimiter-using-xlsio.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-open-a-csv-file-with-a-tab-delimiter-using-xlsio.md b/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-open-a-csv-file-with-a-tab-delimiter-using-xlsio.md index d8f362228..96a8990b5 100644 --- a/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-open-a-csv-file-with-a-tab-delimiter-using-xlsio.md +++ b/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-open-a-csv-file-with-a-tab-delimiter-using-xlsio.md @@ -31,6 +31,8 @@ using (ExcelEngine excelEngine = new ExcelEngine()) // Save the workbook to disk in XLSX format workbook.SaveAs(Path.GetFullPath(@"Output/Output.xlsx")); } +{% endhighlight %} + {% highlight c# tabtitle="C# [Windows-specific]" %} using (ExcelEngine excelEngine = new ExcelEngine()) { @@ -49,6 +51,8 @@ using (ExcelEngine excelEngine = new ExcelEngine()) // Save the workbook to disk in XLSX format workbook.SaveAs("Output.xlsx"); } +{% endhighlight %} + {% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} Using excelEngine As New ExcelEngine() ' Instantiate the Excel application object @@ -66,7 +70,7 @@ Using excelEngine As New ExcelEngine() ' Save the workbook to disk in XLSX format workbook.SaveAs("Output.xlsx") End Using -{% highlight %} +{% endhighlight %} {% endtabs %} -A complete working example in C# is present on this GitHub page. \ No newline at end of file +A complete working example in C# is present on this GitHub page.