JasperServer reports returning a blank page in Yii 1

I developed the report using the iReport tool and uploaded it to the JasperReports server on my local server. In iReport and JasperReports Server, the report works fine, but when I call the report from Yii 1, it does not work. It returns a blank page instead of Data. I can’t find out.

Here is my yii 1 code (using the YiiJasper extension in Yii):

       $re = new JasperReport('/entsol/Reports/AcAccounts',
            JasperReport::FORMAT_PDF, array(
                'pAccountTile' => $pAccountTile,
                'pBranch' => $pBranch,
                'pFromDate' => $pFromDate,
                'pToDate'=>$pToDate,
            )
            );
        $re->exec();
        echo $re->reportToPDF(); //All pages

using the code above, I got a blank page instead of data.

How can I get my problem?

+4
source share
1 answer

yii-jasper, JasperServer <= 5.5.x, PHP <= 5.3 PHP >= 5.4.9 Yii >= 1,14

, : ( Yii), / , . , Java datatypes IReports (Integer, BigInteger, Character, String, Date ..) PHP. ( , ).

JasperServer . JasperServer (/your-jasperserver-install-path/apache-tomcat/webapps/jasperserver/WEB-INF/logs).

, jasperserver "data source from repository" . , JasperServer, Data sources, .

0

All Articles