Bonjour,
J'utilise un portlet de contenu customisé qui génère un rendu tabulaire.
Je souhaite maintenant exporter le tableau sous un format CSV.
J'obtiens bien le fichier mais celui-ci contient le code html de la page
entière.
J'utilise le code suivant pour obtenir le fichier :
resp = context.REQUEST.RESPONSE
dispo = 'attachment;filename='+filename
resp.setHeader('Content-Type', 'application/csv;charset=iso-8859-1')
resp.setHeader('Content-Disposition', dispo)
resp.setHeader('Content-Type', 'application/force-download')
resp.setHeader('Cache-Control', 'no-cache')
resp.setHeader('Pragma', 'no-cache')
return chainecsv
Après vérification, la chaine 'chainecsv' contient pourtant bien chaque
données séparée par un point virgule.
Quelqu'un a-t-il une idée ??
Merci pour vos retour
Grégory François.
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.
_______________________________________________
cps-users-fr
Adresse de la liste : [email protected]
Gestion de l'abonnement : <http://lists.nuxeo.com/mailman/listinfo/cps-users-fr>