Hello,
we are evaluateing aspose.cells right now and we have a HTML file with CSS. We import the HTML into a new workbook and save it. But the xlsx is missing the CSS-Styles. If we just copy & paste the table into a empty sheet it works.
What are we doing wrong here? The html-file is attached.article.zip (766 Bytes)
Code:
import com.aspose.cells.HTMLLoadOptions;
import com.aspose.cells.LoadFormat;
import com.aspose.cells.SaveFormat;
import com.aspose.cells.Workbook;
/**
- Created on 25.08.2017.
*/
public class AsposeTest {
public static void main(String[] args) throws Exception {
HTMLLoadOptions options = new HTMLLoadOptions(LoadFormat.HTML);
Workbook htmlBook = new Workbook("C:\\temp\\article.html", options);
htmlBook.save("C:\\temp\\article.xlsx", SaveFormat.XLSX);
}
}
Thanks for your help