ajesh.s Posted August 16, 2013 Share Posted August 16, 2013 Hi, I'm new to jaspersoft. I'm working on a php web application and i want to implement jaspersoft reporting in it. I went through a lot of the available documentation. I used rest api and i was able to connect to the repository and download a report present in the repository as a pdf. My question is is it possible to create a report using php client. I didn't find any example doing that. Also i want to know if it is possible to use mysql queries to fetch data from a DB and use that data to create a report. Any help is appreciated.Thanks in advance Link to comment Share on other sites More sharing options...
plantillas Posted May 29, 2015 Share Posted May 29, 2015 Sorry my friend... is imposible, ... you must desing your report in jasperstudio and create a web interface to send it parameters to your report...http://community.jaspersoft.com/wiki/php-client-sample-code Link to comment Share on other sites More sharing options...
bilel.krichen Posted June 10, 2016 Share Posted June 10, 2016 Yes you can do it by using composite resources that you can specify your data sources your jrxml file, input controls $c = new Client("http://localhost:8080/jasperserver","jasperadmin","jasperadmin");try{ $report = new ReportUnit; $report->label = "file5Report"; $report->description = "file5Report"; $report->jrxml = "/jrxml/file2"; $report->dataSource = "/datasources/datasource"; $c->repositoryService()->createResource($report, "/ImageFolder", false);}catch (JaspersoftExceptionRESTRequestException $e){ echo $e->getMessage();}[/code]I hope that my answer is helpfull Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now