como fazer relatório jasper + laravel
boa noite,
estou tendo dificuldade em mostrar o relatório feito com jasperSoft no laarvel
vem esse erro "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."
meu Controller: <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use JasperPHP;
class ControllerReports extends Controller {
public function gerarpdf(){
JasperPHP::process(
base_path(''/vendor/cossou/jasperphp/examples/teste.jasper''),
false,
array(''pdf''),
array(''a''=>''a''),
array(
''driver'' => ''mysql'',
''username'' => ''root'',
''password''=>'''',
''host'' => ''localhost'',
''database'' => ''sgcedsoft'',
''port'' => ''3306''
)
)->execute();
}
}
minha rota:
Route::get(''relatorio/gerarpdf'', ''ControllerReports@gerarpdf'')->name(''relatorio/gerarpdf'')->middleware(''auth'');
estou tendo dificuldade em mostrar o relatório feito com jasperSoft no laarvel
vem esse erro "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."
meu Controller: <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use JasperPHP;
class ControllerReports extends Controller {
public function gerarpdf(){
JasperPHP::process(
base_path(''/vendor/cossou/jasperphp/examples/teste.jasper''),
false,
array(''pdf''),
array(''a''=>''a''),
array(
''driver'' => ''mysql'',
''username'' => ''root'',
''password''=>'''',
''host'' => ''localhost'',
''database'' => ''sgcedsoft'',
''port'' => ''3306''
)
)->execute();
}
}
minha rota:
Route::get(''relatorio/gerarpdf'', ''ControllerReports@gerarpdf'')->name(''relatorio/gerarpdf'')->middleware(''auth'');
ângelo Hd
Curtidas 0