Publish a report on JasperReports Server


Open the report you want to upload and hit the button with a blue arrow in the right-upper corner of the designer, and a dialog will appear. In this window you can browse the server directory structure to choose where to place the report. Select the "Reports" folder as in the image above. Give a name at the report unit that will be create to contains all the files of the report we are uploading (for this example we can use "ColumnsSample"). Then hit the "Next" button.

Figure 1. Report publish procedure

Report publish procedure

In the next step we have to handle the data source. Infact exporting a report is quite simple, but exporting the datasource used to fill the report it isn't so trivial. About the datasource exporting we have 3 options:

  • Datasource from repository: the server will use a datasource already on it to fill the report, so we will only need to browse the server until we find the wanted datasource.
  • Local data source
  • Don't use any datasource: only the report is exported without any datasource connection

We will use the third option, that is the default one, and hit "Finish". The report will now uploaded to the server and if there is no error an appropriate message will be shown.