convert from xls to xlsx C#
/// <summary>/// Using Microsoft.Office.Interop to convert XLS to XLSX format, to work with EPPlus library/// </summary>/// <param name="filesFolder"></param>
public static string ConvertXLS_XLSX(FileInfo file)
{
var app = new Microsoft.Office.Interop.Excel.Application();
var xlsFile = file.FullName;
var wb = app.Workbooks.Open(xlsFile);
var xlsxFile = xlsFile + "x";
wb.SaveAs(Filename: xlsxFile, FileFormat: Microsoft.Office.Interop.Excel.XlFileFormat.xlOpenXMLWorkbook);
wb.Close();
app.Quit();
return xlsxFile;
}
Also in C#:
- how to reference the position of a game object unity
- bitmap to byte array c#
- The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located.
- asp list box
- c# param exception
- 2d object look at object
- Instantiate c#
- unity onclick object
- c# build string out of list of strings
- variables
- asp.net mvc 5 codefirst dropdown list
- asp.net textarea disable resize
- instantiate offset unity
- unity3d get component
- c# declare an int list
- string isnullorempty vs isnullorwhitespace
- c sharp list of strings
- c# console delay
- c# split large file into chunks
- git checkout reset hard
- how to display an image url in c# picturebox
- list.addrange in c#
- how to move clipping planes C# in unity
- how to reference scripts in other scenes unity