Skip to content

Uncaught PHPJasper\Exception\ErrorCommandExecutable #263

Open
@rafaabraham

Description

@rafaabraham

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions