My requirement is, I need to convert Excel into HTMl without distortion of style and again regenerate Excel xlsx back from HTML …Thus after conversion and regeneration both excel files should look same.
for Html Conversion I am using following code
Aspose.Cells.Workbook excel = new Aspose.Cells.Workbook(Root+“demoExcel.xlsx”);
Aspose.Cells.HtmlSaveOptions options = new Aspose.Cells.HtmlSaveOptions();
options.Encoding = System.Text.Encoding.UTF8;
options.ExportImagesAsBase64 = true;
options.ExportGridLines = true;
options.ExportSimilarBorderStyle = true;
options.ExportFrameScriptsAndProperties = true;
options.ExportBogusRowData = true;
options.ExportHiddenWorksheet = true;
using this process I am getting HTML in good format…
please guide me how to regenerate xlsx back from HTML.
I can also use this flow
- xlsx to pdf :- as here I am having option for each sheet as one page of pdf…that’s very good
- pdf to html:- html conversion is perfect.
now using this html how can I get back to xlsx…