Jump to content
Changes to the Jaspersoft community edition download ×

JasperReports from PHP?

2004 IR Help

Recommended Posts

By: Juan Reyes - jreymol

JasperReports from PHP?

2005-01-11 12:57

Is it possible to call a JasperReport using php code?





By: Alexander Wallace - aows

RE: JasperReports from PHP?

2005-01-11 16:23

yes, there are many ways, you can write a webapp in java that serves reports to php or any other language, in this case you can use fopen or curl or any other way you want to stablish an http connection. This is the most scalable way.


In the other hand if you want to avoid running a web app for that, you can write some java classes that ultimately print the output to standard output and call those classes from php and return their output, something like:



header("Content-type: application/pdf");

$command = "/runReport.sh";




runReport.sh is a script that executes your java class that outputs your report, as a pdf in this case...


Hope that helps

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...