Hi, I am trying to run phpjasper in a phpmaker project.
When I compile the example file it works but I also get the following message:
...\vendor\slim\php-view\src\PhpRenderer.php(77): Layout template "layout.php" does not exist
I use this code:
$input = './vendor/geekcom/phpjasper/examples/hello_world.jrxml';
$jasper = new \PHPJasper\PHPJasper;
$jasper->compile($input)->execute();
After this when I want to create a pdf with following code:
...\vendor\geekcom\phpjasper\src\PHPJasper.php(250): 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.
Anyone have an idea how I can proceed with this? Thank you very much!
Hi, I am trying to run phpjasper in a phpmaker project. When I compile the example file it works but I also get the following message:
...\vendor\slim\php-view\src\PhpRenderer.php(77): Layout template "layout.php" does not exist I use this code: $input = './vendor/geekcom/phpjasper/examples/hello_world.jrxml';
$jasper = new \PHPJasper\PHPJasper;
$jasper->compile($input)->execute();
After this when I want to create a pdf with following code:
$input = './vendor/geekcom/phpjasper/examples/hello_world.jrxml';
$output = './vendor/geekcom/phpjasper/examples';
$options = [ 'format' => ['pdf'] ]; $jasper = new \PHPJasper\PHPJasper;
$jasper->process($input,$output,$options)->execute();
...\vendor\geekcom\phpjasper\src\PHPJasper.php(250): 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.Anyone have an idea how I can proceed with this? Thank you very much!