We are evaluating the Cells product for use within a web application. Our goal is to convert an html table report, with CSS styles in the page, to an Excel document (xlsx). The converter works for the most part, however, the word wrap, heights, widths, and other things are ignored with the converter. Is this intended, or a bug? I have attached the sample html file that is being converted, along with the excel output. Additionally, the PDF output chops off sentences instead of obeying the word wrap style in the CSS. If I simply drag the html test file over to Excel, Excel opens the html and applies the CSS styling correctly. Is there a setting I am missing? We are using Visual Studio 13 with Nuget and the installed package is 9.0.0.
Here is the code:
Aspose.Cells.HTMLLoadOptions options = new Aspose.Cells.HTMLLoadOptions(Aspose.Cells.LoadFormat.Html);
Aspose.Cells.Workbook book = new Aspose.Cells.Workbook(fileNameHtml, options);Any thoughts?
book.Worksheets.Cells.StandardWidthPixels = 90;
book.Save(fileNameHtml + “.xlsx”, Aspose.Cells.SaveFormat.Xlsx);
book.Save(fileNameHtml + “.pdf”, Aspose.Cells.SaveFormat.Pdf);