Skip to content

SubReport - Problemas não encontra o subrelatorio #48

@caioviniciusrodrigues

Description

@caioviniciusrodrigues

Error filling reportResource not found at: C:\wamp64\www\156\public\reports" -t mysql -u xxx -p xxx -H localhost -n base?useSSL=false --db-port 3306 /subreport_perguntas.jrxml.

criei o parametro no relatório mestre, e passei as expressoes:

$P{subreportsPath} +"/subreport_perguntas.jrxml"

tentei

$P{subreportsPath} +"/subreport_perguntas.jasper"

` $input = public_path() . '/reports/'. $relatorio;

    $subReport = public_path() . '\\reports\\';

    $output = public_path() . '/reports/' . time();

    $options = [
        'format' => ['pdf'],
        'locale' => 'pt_BR',
        'params' => [
            'my_where' => $condicoes,
            'periodo' => $periodo ?? '',
            'subreportsPath' => $subReport
        ],
        'db_connection' => $this->getDatabaseConfig(),
    ];

    $report = new PHPJasper;

    //dd($options);

    $report->process(
            $input,
            $output,
            $options
    )->execute();

    //print_r($x);

    $file = $output . '.pdf';
    $path = $file;

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions