You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have finished drawing the report using jasper studio, and generated a .jasper file, then I tried to compile the file into a pdf report, but I get an error message:
"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:\xampp\htdocs\phpjasper-master\src\PHPJasper.php:250 Stack trace: #0 C:\xampp\htdocs\phpjasper-master\export.php(46): PHPJasper\PHPJasper->execute() #1 {main} thrown in C:\xampp\htdocs\phpjasper-master\src\PHPJasper.php on line 250"
Hi, i get the same error, i run the command of "->output();" in the shell on CentOs 7 and it works, it make the pdf or xls file, but from PHP i get the error mentionet here.
Has anyone already solved this?
I have finished drawing the report using jasper studio, and generated a .jasper file, then I tried to compile the file into a pdf report, but I get an error message:
"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:\xampp\htdocs\phpjasper-master\src\PHPJasper.php:250 Stack trace: #0 C:\xampp\htdocs\phpjasper-master\export.php(46): PHPJasper\PHPJasper->execute() #1 {main} thrown in C:\xampp\htdocs\phpjasper-master\src\PHPJasper.php on line 250"please help me...
this is a php file :
`<?php
require DIR . '/vendor/autoload.php';
use PHPJasper\PHPJasper;
$input = '/examples/karyawan.jasper';
$output = '/examples';
$options = [
'format' => ['pdf'],
'locale' => 'en',
'params' => [],
'db_connection' => [
'driver' => 'mysql', //mysql, ....
'username' => 'root',
'password' => 'madajaya',
'host' => 'localhost',
'database' => 'maj_penilaiankar',
'port' => '8080'
]
];
$jasper = new PHPJasper;
$jasper->process(
$input,
$output,
$options
)->execute();
?>`
The text was updated successfully, but these errors were encountered: