|
From: <php...@li...> - 2009-08-08 11:48:11
|
Hi,
$pageHeight and $pageWidth are java objects.
Since Java doesn't automatically convert objects into php values, you must
do this explicitly. For example with:
(int)(string)$width;
Please see the php java bridge api for other possibilities to convert
objects into values.
Regards,
Jost Boekemeier
8. Aug 2009 1:40 nachm. schrieb am <
php...@li...>:
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.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|