Hi,
I am using Aspose.Cells-8.6.3
While generating the HTML output of a table, an extra column appears in the output. Number pof columns are 11 whereas in html generated the no of columns(td elements in each row) are 12.
If I use MS Excel save as option to save table “BIG4_VALUATION” (B3:L14) as html, it returns correct number of columns which is 11.
Here is the source code to copy range to new worksheet & save as html.
//The sheet being used in “DB_Tables”.
Range sourceRange = selectedWorksheet.getCells().createRange(“B3:L14”);
Workbook targetWorkbook = new Workbook(FileFormatType.XLSX);
WorksheetCollection targetWsc = targetWorkbook.getWorksheets();
com.aspose.cells.Worksheet targetWs = (com.aspose.cells.Worksheet)targetWsc.get(0);
Range targetRange = targetWs.getCells().createRange(0, 0, sourceRange.getRowCount(), sourceRange.getColumnCount());
PasteOptions options = new PasteOptions();
options.setPasteType(PasteType.ALL);
targetRange.copy(sourceRange, options);
File htmlFile = new File(“C:/temp/AposeGenerated.htm”);
targetWorkbook.save(htmlFile.getAbsolutePath(), SaveFormat.HTML);
Can you look into this priority. This is reported by customer in production environment.
Thanks,
Neeraj