-
-
Notifications
You must be signed in to change notification settings - Fork 163
Uncaught PHPJasper #154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@wiltonbarros Execute o método output() e vai ficar fácil achar onde está o erro, confira sua conexão, pode estar aí o erro. |
@geekcom Obrigado pelo rápido retorno! |
I have the same problem, follow the information: When exchanging execution for output, no error is displayed. |
Uh oh!
There was an error while loading. Please reload this page.
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!
The text was updated successfully, but these errors were encountered: