public static XmlDocument Process(string excelFile) { IWorkbook workbook = WorkbookFactory.Create(excelFile, null); ExcelToHtmlConverter excelToHtmlConverter = new ExcelToHtmlConverter(); excelToHtmlConverter.ProcessWorkbook(workbook); return(excelToHtmlConverter.Document); }
private void Test(string fileName) { HSSFWorkbook workbook; workbook = ExcelToHtmlUtils.LoadXls(fileName); ExcelToHtmlConverter excelToHtmlConverter = new ExcelToHtmlConverter(); excelToHtmlConverter.ProcessWorkbook(workbook); excelToHtmlConverter.Document.Save(Path.ChangeExtension(fileName, "html")); ; }
private void Test(string fileName) { HSSFWorkbook workbook; workbook = ExcelToHtmlUtils.LoadXls(fileName); ExcelToHtmlConverter excelToHtmlConverter = new ExcelToHtmlConverter(); excelToHtmlConverter.ProcessWorkbook(workbook); excelToHtmlConverter.Document.Save(Path.ChangeExtension(fileName, "html"));; }
public static XmlDocument Process(string excelFile) { IWorkbook workbook = WorkbookFactory.Create(excelFile); ExcelToHtmlConverter excelToHtmlConverter = new ExcelToHtmlConverter(); excelToHtmlConverter.ProcessWorkbook(workbook); return excelToHtmlConverter.Document; }