How to use JasperPHP as html to pdf

1.Create e report with an textfied en change markup to html and set expression to $V{htmlData} 2.Define an variable with expression $F{documentos_source} 3.Define another variable $V{recordObj} and set ‘initial value expression’ to a class name of our record object, ex: document 4.create a class document 5. Define an sql query as you want, but a …

How to use multidimensional objects as active record in JasperPHP

In our case, active record objects are a PHP class object to give super powers to a returned record in database recordset, the magic methods “__get” and “__set” act as router intercepting read and write fields and runs any code than you need.Like this sample: public class ActRecordTest{ public function _get($prop) { if (method_exists($this, ‘get_’.$prop)) …

Stand alone installation

download lastest version of QuilhaSoft/jasperPHP library on github download lastest version of tecnickcom/TCPDF library on github create a folder ‘japser_test’ into document root webserver and extract both librarys into uncoment and adjust php require tecnikon in JasperPHP/Tjasper.class.php on line 85 adjust in japserPHP/config/dev.ini file to correspond your database configuration, actualy support ‘pgsql’,’mysql’,’sqlite’,’ibase’,’oci8′,’mssql’, but how do …