Excel to HTML, is it support to have cell id

Hi,

I'm new and I'm trying to convert excel to HTML, I'm using this code to convert:

using Syncfusion.XlsIO;
ExcelEngine excelEngine = new ExcelEngine();
IApplication application = excelEngine.Excel;
IWorkbook workbook;
using (FileStream file = new FileStream("input_html.xlsx", FileMode.Open, System.IO.FileAccess.Read))
{
    workbook = application.Workbooks.Open(file);
}
IWorksheet sheet = workbook.Worksheets[0];
workbook.Version = ExcelVersion.Xlsx;
using (FileStream file = new FileStream("syncfusion output html.html", FileMode.Create, System.IO.FileAccess.Write))
{
    workbook.SaveAsHtml(file);
}


Can I have cell id like "A1" as attribute on the table cells in the generated htmt <td data-cell="A1"></td>?

Thanks


1 Reply

RS Ramya Sivakumar Syncfusion Team March 31, 2022 10:13 AM UTC

Hi Bashar,


Greetings from Syncfusion.


Currently, XlsIO exports the worksheet to HTML in generic format with HTML tables. It is not valid to customize the HTML document with a data-cell attribute. It may affect other users. So, we don’t have any plans to implement this feature.


Regards,

Ramya.


Loader.
Up arrow icon