Hi,
I’m looking at using Aspose Cells to convert HTML output into XLSX, my HTML includes an image.
I’ve been unable to get the image to appear in the XLSX file.
I’ve tried creating HTML with just <IMG src …>
I’ve tried creating the HTML by saving an XLSX file in HTML format with the image
I’ve tried creating the HTML using ASPOSE XLSX to HTML.
When I look at the HTML in IE all three versions are working with the image displayed.
My code (copied from your examples) is
public class HTMLConvertor {
public static void main(String[] args) {
HTMLLoadOptions options = new HTMLLoadOptions(LoadFormat.HTML);
options.setAttachedFilesDirectory(“T:\KDW\Aspose\HTML2XLSX\excel format\F20150806123156_000001_files”);
try {
Workbook book = new Workbook(“T:\KDW\Aspose\HTML2XLSX\excel format\F20150806123156_000001.htm”, options);
book.save(“T:\KDW\Aspose\HTML2XLSX\excel format\PC Version.xlsx”, SaveFormat.XLSX);
} catch (Exception e) {
e.printStackTrace();
}
}
}
Thanks
Ken