y2k2h Posted September 27, 2013 Share Posted September 27, 2013 I have created the csv text file for the data and jrxml for the template. How do I call iReport to print the report automatically from command line in my batch file? Link to comment Share on other sites More sharing options...
sjoerd.jump Posted September 27, 2013 Share Posted September 27, 2013 Im going to give a very short answer because I'm doing other stuff, see if you can follow it trough. If not, please let me know here and I'll type some longer answer :)First. Scedule a job for your report and write down the JobID. Make sure it's sceduled somewhere in the distant future.Install Jaspersoft ETL and create a new job.In this job, add a tREST elementYour tREST element sends a call to your jasperserver to execute a certain JOB idMy code for the tREST is:URL: "http://localhost:8080/jasperserver/rest_v2/jobs/restart/?j_username=jasperadmin&j_password=jasperadmin"First.[/code]The body element has."<jobIdList><jobId>1287</jobId></jobIdList>"[/code] HExport the tREST project, extract the zip, find the BATCH file and add that location to your own BATCHFILE. Link to comment Share on other sites More sharing options...
y2k2h Posted September 29, 2013 Author Share Posted September 29, 2013 Hi, is it possible for you to elaborate further? Sorry about that because I am quite new to jaspersoft solution. 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