i believe here are lot a discussion with this matter. but i read all post and try but it never work with c#. my goal is simple that i have existing csv file. just want conve
At the top of your file insert the following line:
using Microsoft.Office.Interop.Excel;
This will include the namespace needed to use the XlFileFormat and XlSaveAsAccessMode classes. If this does not work you may need to add a reference to this DLL to your project as well.
The Close method takes in the following arguments:
The documentation for that is here.
Hope that helps.