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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 19:47:24
Script start
Timing: Jan 30 2025 19:47:24
Module start 'layout'
Timing: Jan 30 2025 19:47:24
Module start 'content'
Timing: Jan 30 2025 19:47:24
Module end 'content'
Timing: Jan 30 2025 19:47:24
Script end

Main resources:

Total runtime0.0243 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 587.9844151.1797
Module start 'layout' 0.00490.0038 739.1641220.6250
Module start 'content' 0.00870.0141 959.7891997.8828
Module end 'content' 0.02280.0014 1,957.671933.9766
Script end 0.0243  1,991.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002610.5701140.0002
Check MTime0.00104.2292140.0001
Mysql Total
Database connection0.00073.087510.0007
Mysqli_queries0.00239.441130.0008
Looping result0.00000.049110.0000
Template Total0.00104.110.0010
Template load0.00083.220010.0008
Template processing0.00020.868810.0002
Override
Cache load0.00062.281510.0006
General
dbfile0.002711.254380.0003
String conversion0.00000.024540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs