Description
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();
?>`