Hi,
We noticed a few issues with center and right horizontal alignments when converting an xls file to html. We noticed two main issues here:
- The center alignment in the second row doesn’t reflect what’s displayed in the actual worksheet. It actually looks like it’s still left aligned.
- The right alignment in cell C3 is missing the overflow:hidden attribute, which causes it to overflow into all the data to it’s left.
TextAlignReproducer.zip (6.5 KB)
var workbookStream = new FileStream(“TextAlignReproducer.xls”, FileMode.Open);
var workbook = new Workbook(workbookStream);
var saveOptions = new HtmlSaveOptions { ExportImagesAsBase64 = true };
workbook.Save(@"…\textAlignReproducer.html", saveOptions);