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

Print Report Automatically from Command Line in Batch File.


y2k2h

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 element

Your tREST element sends a call to your jasperserver to execute a certain JOB id

My 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

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...