Well, it's true: sending some html doc with content set
to application/vnd.ms-excel will force iexplore.exe to
launch msexcel. And it works smoothly.
Nevertheless I'd rather add that:
- you have to install msexcel 2000 or XP on any client involved
(excel 97 or older won't work)
- and make sure people are using ms explorer (not sure about that)
- finally you have *NOT* to worry/emulate the strange formats
that Excel generates when user asks to save in html: any well-formed
html will work
hope may help
daniele rizzi


Sounds good. Thanks a lot for your suggestions!
Mit freundlichen Gruessen
Sascha Oehl
IBM Mittelstand Systeme GmbH



Depending on what you're trying to do... POI/HSSF
might be fairly simple, as someone else suggested.
HSSF via Cocoon looks like a fair amount of investment
to learn. The easiest workaround, however, since you
are posting to the iText forum, is to write your iText
Document to an HtmlWriter. Excel opens HTML very
nicely. I have had fine success opening a writer
pointing to a ".xml" file. Windows knows to open in
in Excel due to its extension, then Excel opens the
HTML file. I have never had a complaint from a user.
When the user closes the document they will get a
prompt asking them whether they want to save the
document in Excel format. Since the version is
included in this prompt, they will simply assume that
this spreadsheet was created with an older version of
Excel and they may then save it as Excel if they wish.
This approach does not work so well with extremely
large HTML documents, but it's easy to test. I would
think you could do this from a servlet as well, if you
marked the OutputStream with the Excel mimetype
("application/vnd.ms-excel"?), but I've never tested
it.

--- [EMAIL PROTECTED] wrote:
Does anyone know a tool where i can convert html to
excel, or output excel
like a rtfwriter?

https://lists.sourceforge.net/lists/listinfo/itext-questions

__________________________________________________

-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to