You are here: Exporting html table to excel « HTML « IT news, forums, messages
Exporting html table to excel

Posted by Gobi on 06/07/06 06:00

I have a JSP page which contains a table that I would like to export to
excel just by clicking a link. I can do this by specifying:

contentType="application/vnd.ms-excel"

This automatically opens excel and imports the html table directly into
it. This is fine for the most part. What my problem is, one of the
columns has IDs that has zeros in front (eg. 00001). In the html table,
it is displaying fine. But in the excel table it strips the zeros so
now my id is 1 when in fact I still want to display it as 00001. Any
ideas on how to do this? TIA.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация