Jump to content
We've recently updated our Privacy Statement, available here ×

How to integrate Jasper Reports with PHP


abhijitgadekar

Recommended Posts

Hi,

 

 

I know how to integrate Jasper Reports with JSP.

Following is the code that I put in my index.jsp and reports are displayed in the browser.

 

 

JRHtmlExporter exporter = new JRHtmlExporter();

 

 

exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);

 

 

exporter.setParameter(JRExporterParameter.OUTPUT_WRITER, out);

exporter.exportReport();

 

 

Now,

My question how to do this in PHP. I dont know PHP. But I am guessing that i just need to replace the "out" parameter of JSP (the type of out is jsp.JspWriter) with equivalent of PHP in the following line .

exporter.setParameter(JRExporterParameter.OUTPUT_WRITER, out);

 

 

Is this correct? If so please tell me the equivalnt of "out" object in PHP. Otherwise please send me a piece of code with jasper reports in PHP.

 

 

Thanks,

Abhijit

Link to comment
Share on other sites

  • Replies 1
  • 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...