Beispiel #1
0
        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")); ;
 }
Beispiel #3
0
        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"));;
        }
Beispiel #4
0
 public static XmlDocument Process(string excelFile)
 {
     IWorkbook workbook = WorkbookFactory.Create(excelFile);
     ExcelToHtmlConverter excelToHtmlConverter = new ExcelToHtmlConverter();
     excelToHtmlConverter.ProcessWorkbook(workbook);
     return excelToHtmlConverter.Document;
 }