3

I think that reporting in PHP is very hard. I tried the raw methods of FPdf or R&OS but i would like to know if there is something more friendly to use like JasperReport or Adobe LiveCycle. I saw somewhere the php javabridge to run jasperreport from php, but i don't like very much this solution.

What do you use for php reporting? Don't you think that fPdf or smiliar are not very friendly for standard reports?

Thank you.

Madara's Ghost
  • 172,118
  • 50
  • 264
  • 308
Tobia
  • 9,165
  • 28
  • 114
  • 219
  • Take a look at here : http://stackoverflow.com/questions/2417315/generate-pdf-report-from-php – rkosegi Feb 14 '12 at 11:53
  • Exactly what report are you trying to generate to PDF? Error reoprts? Logs? Client reports? Reports for the users to download? What? – Madara's Ghost Feb 14 '12 at 11:53
  • fpdf has been very friendly for me. Whats your problem? – Perlnika Feb 14 '12 at 11:55
  • This is just an idea. You can create HTML report and then convert HTML files to PDF. For HTML to PDF you can use either http://code.google.com/p/wkhtmltopdf/ or http://www.convertapi.com – Tomas Feb 14 '12 at 12:59
  • For reporting I mean PDF for print (please see title) – Tobia Feb 14 '12 at 14:52
  • I know that fPdf has simple methods, but i would like to create a report template with some gui application... HTML to PDF can be very nice but can I manage page breaks, headers and footers? – Tobia Feb 14 '12 at 14:55

2 Answers2

2

Personally I use PHPExcel for creating Excel files and TCPDF for PDF. Both are very well written object oriented libraries and don't need any external extensions.

matino
  • 17,199
  • 8
  • 49
  • 58
0

What do you mean by php reporting?

For generating PDF files I use and highly recommend mPDF, which does not require any special extensions on the server.

kingmaple
  • 4,200
  • 5
  • 32
  • 44