chathurangat / phpjasperlibrary Goto Github PK
View Code? Open in Web Editor NEWPHP Library for Generating JasperReports with PHP
Home Page: http://chathurangat.blogspot.com/2012/03/jasperreports-with-php.html
PHP Library for Generating JasperReports with PHP
Home Page: http://chathurangat.blogspot.com/2012/03/jasperreports-with-php.html
PHPJasperXML Unable to print table data or SUBREPORT OR TABLES, NOTHING IS SHOWING
tests.zip
Hi - I came across your project and I am so happy that it works without the need of using TomCat and PHP JavaBridge, which is the way I was doing it...
Anyway - I used the following code and I came across 2 issues:
include_once('PhpJasperLibrary/tcpdf/tcpdf.php'); include_once('PhpJasperLibrary/PHPJasperXML.inc.php'); $server='localhost'; $db='xxxxxxxx'; $user='xxxxxxx'; $pass='xxxxxx'; $pgport=3306; $xml = simplexml_load_file('test.jrxml'); $PHPJasperXML = new PHPJasperXML(); $PHPJasperXML->xml_dismantle($xml); $PHPJasperXML->transferDBtoArray($server,$user,$pass,$db); $PHPJasperXML->outpage('I');
The first issue is that when I have a title, it creates an entire page for the title.
The second issue is that when I run this report, an error was trapped at line number 3155:
[04-Jan-2018 13:12:10 UTC] PHP Warning: Invalid argument supplied for foreach() in /......../PhpJasperLibrary/PHPJasperXML.inc.php on line 3155
so I replaced it with:
if ($this->arraygrouphead && is_array($this->arraygrouphead)){ foreach ($this->arraygrouphead as $out) { $this->display($out,$y,true); } }
I attached the report and I can give you the address so you can see what it does: http://sdksandbox.com/_sandbox/mihai/jasper_test/report.php
The title is set 30 in height in the iReport, but it creates this page...
I am using iReport v5.5.1 and I just downloaded your library. So it is the latest as I write this issue.
Please let me know if I can help with anything to get this working...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.