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();
using the code above, I got a blank page instead of data.
How can I get my problem?
source
share