Convert aspose cells to html

hi,
I was trying to convert an excel to html using html with this code:

Workbook workbook = new Workbook(Path.Combine(path, fileName + extension));
workbook.Save(Path.Combine(path, “ConvertedFiles”, extension + “_converted.html”), Aspose.Cells.SaveFormat.Html);

the resultant html is this:|
output.jpeg.png (57.7 KB)

is there any way i can add border to each cell values in the output html file?

@pooja.jayan
Please try the following codes:
Workbook wb = new Workbook(dir + “test.xlsx”);
HtmlSaveOptions saveOptions = new HtmlSaveOptions();
saveOptions.ExportGridLines = true;
wb.Save(dir + “dest.html”, saveOptions);

1 Like