Pentaho

 View Only

 Integrate Prd report in PHP site

  • Pentaho
  • Pentaho
Alessandro Corradi's profile image
Alessandro Corradi posted 03-13-2021 22:53

HI,

 

I want to embed a .prpt report in my php web site.

I'm using that rest call: http://localhost:8080/pentaho/api/repos/<path to report project>.prpt/generatedContent.

 

it return html correcty, but css and other resources has wrong path, they points to my web site.

 

How can I solve this? I searched everything...

 

TY

 

A.


#Pentaho
Alessandro Corradi's profile image
Alessandro Corradi

Hi again,

 

I fix that with a string replace of the html string output from "/pentaho" to "http://<myserver>:8080/pentaho", changing from relative to absolute path. Now I can see the report in my web site.

 

The question is... what's wrong? Do I miss a parameter?

 

Thnak you!