Converting a .xls file to .html

Linda Octalina linda_octa at yahoo.com
Wed Dec 3 07:13:45 EST 2008


Do you have styles attached to the text of the document in the xls? (bold, italic, etc)
if not, then you can just do the mapping by creating table and cells by yourself... (or xslt)

 {^(00)^} LiNdA OcTaLiNa
---GeEeEee---




________________________________
From: Jeremiah Dodds <jeremiah.dodds at gmail.com>
To: python-list at python.org
Sent: Wednesday, December 3, 2008 9:50:49 PM
Subject: Re: Converting a .xls file to .html




On Wed, Dec 3, 2008 at 5:54 AM, tarun <tarundevnani at gmail.com> wrote:

Hello All,
 
I've a .xml file (saved as .xls) that can be opened in Microsoft excel. I want to write python code that converts this excel file into .html (so that it can be viewed as is in an explorer).
 
Can any one help?
 
Regards,
Tarun
--
http://mail.python.org/mailman/listinfo/python-list


A quick google search shows http://pyxlreader.sourceforge.net/ , and a few other libraries for reading xls files. I don't use excel, so I can't test it. There may not be a library for going straight from xls -> html, but if you can get xls -> text  or a list or whatnot, then you could use pretty much any html generation tool you want on it, python's got plenty of templating libraries available.



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081203/b8367995/attachment-0001.html>


More information about the Python-list mailing list