Document Conversion : HTML to Excel (xls- csv)

Hello,

On the topic of "document conversion."
I
am interested in Aspose.Word and Aspose.Cells for one reason. I need
an easy way to run a service to perform document conversion. Since MS
Office automation should not be used as a service I am drawn to
Aspose.Word and Aspose.Cells.

Very simply, I have HTML document(s) that I need to convert to ,(.doc),(.rtf),(.pdf),(.csv), and (.xls).

I
know RTF and PDF are suppose to be supported for Aspose.Word (Java)
later this year. However, is there any possibility that Aspose.Cells
will support opening HTML files and saving them as (.xls) or (.csv) in
the near future? (As MS Office Excel has the ability to open HTML and
save as (.xls).)

Regards.

Hi,

Thanks for your inquiry.

Well, currently, we are doing some other important tasks regarding Excel 2007 file formats and after finishing them, we may start developing this feature.We will soon update you (regarding schedule) for the feature.

Thank you.

Hi,

Thank you for considering Aspose.

Please try the attached latest version of Aspose.Cells. We have supported the feature to import the HTML files.

Thank You & Best Regards,

Hi Aslam,
Could you please attach a sample program which does this in Java ? i.e create an excel file using equivalent html ?

Thanks,
Naveen.

Hi,

Thanks for your posting and considering Aspose.Cells for Java.

Please see the following code. I have attached the source and output file generated by this code.

Java


String filePath = “F:\Shak-Data-RW\Downloads\source.htm”;


LoadOptions opts = new LoadOptions(LoadFormat.HTML);


Workbook wb = new Workbook(filePath, opts);//open test file

wb.save(filePath + “.out.xlsx”);