|
From: <php...@li...> - 2009-08-08 11:40:02
|
Hi,
I am Using PJB for running Jasper Reports from PHP. Please Refer Following
Code
$jrPrint =
$rptRef->tempDir.DS.$rptRef->templateFile.JRPRINT;
$fillManager = new
JavaClass("net.sf.jasperreports.engine.JasperFillManager");
$jasperPrint = $fillManager->fillReport($jasper, $jrPara,
$xmlDataSource);
This is suppose to be of type "net.sf.jasperreports.engine.JasperPrint"
This java class has many methods out of which following two methods are
suppose to return Integers
$w = $jasperPrint->getPageWidth();
$h = $jasperPrint->getPageHeight();
while invoking these methods no exception is also generated but
I am not getting any integers. PHP debugger shows them as some object
I want to use the integer values for further processing How can I get those
as integers ?
The $jasperPrint object is used further by other java classes created
through PHP
there it gives desired results. So I don't doubt the returned object its
just fine.
OS is Windows, Apache, PHP 5.3, Tomcat 6, LocalHost, JasperReports 3.5.2,
nuSphere PHPed as PHP IDE.
Thanks and Best regards.
Raja.
|