Hi,
I doubt you'll be able to write a printer that generates Excel content.
However you can use the excel plugin to generate XWiki. It works quite fine
and will return you a ByteArray that you can send out the way you described
http://extensions.xwiki.org/xwiki/bin/view/Extension/Excel+Plugin
Ludovic
2011/11/15 Zuber, Lionel <lionel.zuber(a)logica.com>
Hello,
We want to make an Excel Export in XWiki but we have lot of problem.
Actually we are trying to make :
· A renderer to user XWiki Rendering Tool => It's ok
· A printer to return Excel content => Have a doubt about this
solution
· A template to take Excel Content (xpage=excel) et push into
OutputStream with => Not run
Have you idea about this kind of need ?
To last step, i have try to use it :
$response.setContentType("application/ms-excel")
$response.setHeader("Content-Disposition", 'inline;
filename="my_excel.xls"')
$xcontext.setFinished(true)
$response.getOutputStream().write($myexcelcontent)
------------------------------------------------
Lionel ZUBER | UMA - Equipe technique
Centre de Service Rhône-Alpes | France
T : +33 4 69 64 63 20 | M: +33 6 76 90 54 47
lionel.zuber@logica.com<mailto:lionel.zuber@logica.com> |
www.logica.fr<
http://www.logica.fr>
P afin de contribuer au respect de l'environnement,
merci de n'imprimer ce mail qu'en cas de nécessité
Think green - keep it on the screen.
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Ludovic Dubost
Founder and CEO
Blog:
http://blog.ludovic.org/
XWiki:
http://www.xwiki.com
Skype: ldubost GTalk: ldubost