-
-
Notifications
You must be signed in to change notification settings - Fork 165
Description
Boa tarde!
Estou tentando iniciar os testes com o phpjasper, fiz as configurações conforme tutorial inicial, também acompanhei os passos da issue #15.
Atualmente tenho o java 1.8 instalado com java_home configurado e também o path.
Abaixo segue código que utilizei para efetuar os testes iniciais:
use PHPJasper\PHPJasper;
$input = '../composer/vendor/geekcom/phpjasper/examples/hello_world.jrxml';
$jasper = new PHPJasper;
$jasper->compile($input)->execute();
$input = '../composer/vendor/geekcom/phpjasper/examples/hello_world.jasper';
$output ='../composer/vendor/geekcom/phpjasper/examples';
$options = [
'format' => ['pdf', 'rtf']
];
$jasper = new PHPJasper;
$jasper->process(
$input,
$output,
$options
)->execute();
O erro gerado é: "Fatal error: Uncaught PHPJasper\Exception\ErrorCommandExecutable: Your report has an error and couldn 't be processed!\ Try to output the command using the function output();
and run it manually in the console. in C:\xampp2\htdocs\php\sistema_ativos\composer\vendor\geekcom\phpjasper\src\PHPJasper.php:219 Stack trace: #0 C:\xampp2\htdocs\php\sistema_ativos\public\patrimonio.php(65): PHPJasper\PHPJasper->execute() #1 {main} thrown in C:\xampp2\htdocs\php\sistema_ativos\composer\vendor\geekcom\phpjasper\src\PHPJasper.php on line 219".
O arquivo .jasper está sendo gerado no diretório em questão.
Obrigado!