Forums / Developer / help

help

Author Message

carlos mboyo

Friday 14 January 2011 2:56:11 am

How to generate a pdf and excel with a button ?????

Bertrand Dunogier

Friday 14 January 2011 3:07:40 am

Hi.

Honestly, we don't even know where to start when it comes to answering that. From what kind of content source ? Both formats with one button ? As a downloadable zip ?

And please, use something more verbose than 'help' as your question's topic ! ;-)

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

carlos mboyo

Friday 14 January 2011 3:30:44 am

not 1 but 2 button, one for PDF and one for excel.

Abdelkader RHOUATI

Friday 14 January 2011 1:35:55 pm

Hello Carlos

For export to PDF, I invite you to use the extension http://projects.ez.no/paradoxpdf.

And for export to Excel, i think creating an layout is good for this. To do it add this code to configuration file layout.ini :

[excel]
PageLayout=excel_pagelayout.tpl
ContentType=application/excel

In template excel_pagelayout.tpl, create the excel's table, exactly like an HTML table.

Finally, for the button/link you use "/layout/set/excel/[url alias of node]".

hope it's help !

TKS,

Abdelkader RHOUATI

Blog (french) : http://arhouati.com
----
Extension arh_jdebug : EzDebug using jquery