Hi support,
I’m using Aspose.Cells version 20.2.0.0 and when having this excel file as input
Excel input.JPG (122.2 KB)
the horizontal border lines that can be seen on the right only, go all the way to the left in the HTML output file as you can see here
Output.JPG (24.9 KB)
Could you help us in understanding why this is happening and how we could accomplish getting the output just like the Excel sheet looks like?
Sample code:
string inputExcelPath = Path.Combine(Environment.CurrentDirectory, @"..\..\..\..\Excel.xlsx");
string htmlFilePath = Path.Combine(Environment.CurrentDirectory, @"..\..\..\..\output.html");
var workbook = new Workbook(inputExcelPath);
var sheet = workbook.Worksheets[workbook.Worksheets.ActiveSheetIndex];
var htmlSaveOptions = new HtmlSaveOptions
{
ExportHiddenWorksheet = false,
HiddenColDisplayType = HtmlHiddenColDisplayType.Remove,
HiddenRowDisplayType = HtmlHiddenRowDisplayType.Remove,
ExportActiveWorksheetOnly = true
};
sheet.Workbook.Save(htmlFilePath, htmlSaveOptions);
I’m attaching all files in the zip file.
Unexpected horizontal borderline.zip (121.1 KB)
Thanks