Something like Crystal Reports for PHP?

后端 未结 12 1406
借酒劲吻你
借酒劲吻你 2020-12-07 10:34

I\'m looking for something that works in PHP and is similar to crystal reports. I basically need to have a layout setup that means I can output invoices just by inserting th

相关标签:
12条回答
  • 2020-12-07 10:54

    The right tool for this need is XSL-FO, as it's perfect for printable media. XSL-FO is also a W3C Recommendation, with XSLT. I've made a php tool that use XSL-FO as intermediate language for reporting, this XLS-FO is the result of merging (processing) the report XSLT template with your XML data.

    You create the template automagically using MS Word, and exporting as shown in the user manual. Then you feed the reporting Engine with the template, and at run time with the data XML.

    Also at runtime, the resulting XSL-FO report is rendered to:

    a) the same XSL-FO (if you want to debug or just want a XSL-FO)

    b) A perfect PDF, (ApacheFOP renders the XSL-FO)

    c) HTML with a XSLFO2HTML transformation.

    Here you have the project, its a symfony 1.4 plugin: https://github.com/juanmf/sfPlugins/tree/master/reportPlugin

    I plan to decouple it from sf. Don't hesitate to ask anything. Here is the HowTo: https://github.com/juanmf/sfPlugins/blob/master/reportPlugin/doc/HowToReport.pdf?raw=true

    This post might also give you some help: https://stackoverflow.com/questions/5519024/report-engine-solution-for-lamp-application/13042656

    Regards!

    0 讨论(0)
  • 2020-12-07 10:55

    Use XML + XSL:FO with Apache FOP via PHP-JavaBridge.

    Here is how: http://wiki.apache.org/xmlgraphics-fop/HowTo/PHPJavaBridge

    PostScript would be nice!

    Many PostScript printers understand PDF too.

    0 讨论(0)
  • 2020-12-07 11:01

    If you manage to call a Java application in your php-environment (which in general should be possible) JasperReports maybe the thing you are looking for:

    0 讨论(0)
  • 2020-12-07 11:01

    hm.. i had the same problem at my current project and i ended up using crystal reports and calling the report with an asp.net web service written in c#. the web service is nothing to complex and you can still use all the features of crystal reports. i dont think that you will find any report engine that is completely based on php that can be compared to crystal reports... i havent been able to find one yet...

    0 讨论(0)
  • 2020-12-07 11:01

    Try Tufat

    I just happen to see that ..may be it will help you. However there is a free version is available for you to test.

    You will like it .. Please share your copy.

    0 讨论(0)
  • 2020-12-07 11:02

    Reportico

    In my opinion is one of the best, detailed and feature rich PHP Report Designer.

    0 讨论(0)
提交回复
热议问题