For many reason, we want used java, and minimized velocity/groovy code. Finally, i think we have a solution : - Generate File in temporary filesystem - Pass Url via Printer - Redirect to url of the generate file To save file and access to it, we do like Chart Macro (use container to get Temporary Folder) and documentAccessBridge to generate URL. -------------------------------------------------- Lionel ZUBER | UMA - Equipe Technique | CSRA T : +33 4 69 64 63 20 | M: +33 6 76 90 54 47 -----Message d'origine----- De : [email protected] [mailto:[email protected]] De la part de Ludovic Dubost Envoyé : mardi 15 novembre 2011 15:49 À : XWiki Developers Cc : GRIGIS, FLORENT Objet : Re: [xwiki-devs] Export Excel 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 <[email protected]>
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 [email protected]<mailto:[email protected]> | 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 [email protected] 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 _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs 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.