filmov
tv
How to convert excel to csv in C# using Excel Application

Показать описание
How to convert excel to csv in C# using Excel Application
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Runtime.InteropServices;
using Excel = Microsoft.Office.Interop.Excel;
namespace writeDataExceltoCsv
{
internal class Program
{
static void Main(string[] args)
{
Excel.Application excelApp = new Excel.Application();
Excel.Workbook excelWB = excelApp.Workbooks.Add("");
Excel._Worksheet excelWS = excelWB.ActiveSheet;
excelWS.Cells[1, 1] = "First Name";
excelWS.Cells[1, 2] = "Last Name";
excelWS.Cells[2, 1] = "Azhar";
excelWS.Cells[2, 2] = "Jamal";
excelWB.Close();
excelApp.Quit();
}
}
}
Chapters:
0:00 - Introduction to video
0:19 - Procedure on how to convert excel to csv in C# using Excel Application
2:14 - End Tags and subscription to the channel
My second Channel:
Follow Insta:
Next Steps :
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
Must Watch Playlists
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
#csharp
#csharptutorial
#csv
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Runtime.InteropServices;
using Excel = Microsoft.Office.Interop.Excel;
namespace writeDataExceltoCsv
{
internal class Program
{
static void Main(string[] args)
{
Excel.Application excelApp = new Excel.Application();
Excel.Workbook excelWB = excelApp.Workbooks.Add("");
Excel._Worksheet excelWS = excelWB.ActiveSheet;
excelWS.Cells[1, 1] = "First Name";
excelWS.Cells[1, 2] = "Last Name";
excelWS.Cells[2, 1] = "Azhar";
excelWS.Cells[2, 2] = "Jamal";
excelWB.Close();
excelApp.Quit();
}
}
}
Chapters:
0:00 - Introduction to video
0:19 - Procedure on how to convert excel to csv in C# using Excel Application
2:14 - End Tags and subscription to the channel
My second Channel:
Follow Insta:
Next Steps :
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
Must Watch Playlists
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
#csharp
#csharptutorial
#csv