Users can import and export Jasper Reports data through the user interface or via command line.
Import or Export Data Through the UI
To import data using the Server Settings:
- Navigate to http://[localhost]:8480/jasperserver-pro/.
- Log into Standalone as sysadmin.
- Click Manage > Server Settings > Import.
- Select the data you wish to import, then click Import.
To export data using the Server Settings:
- Navigate to http://[localhost]:8480/jasperserver-pro/.
- Log into Standalone as sysadmin.
- Right-click the report you wish to export, then click Export.
You can also export reports by right-clicking the report in Jasper Reports, then selecting Export. |
To export report data using commands:
- Navigate to the
<JASPER_HOME>\buildomatic
directory. - Run one of the following commands:
- To export a report or object data, such as data source, input control, image, etc.:
- To retrieve the report or object data in a .zip file:
js-export --uris /organizations/Agiliance/Reports/<reportname> --output-zip report.zip
- To retrieve the report or object data in a folder structure:
js-export --uris /organizations/Agiliance/Reports/<reportname> --output-dir report
- To retrieve the report or object data in a .zip file:
- To export the entire repository:
- To retrieve repository data in a .zip file:
js-export --everything --output-zip repository.zip
- To retrieve repository data in a folder structure:
js-export --everything –output-dir repository
- To retrieve repository data in a .zip file:
- To export a report or object data, such as data source, input control, image, etc.:
To import data into the repository using commands:
- Navigate to the
<JASPER_HOME>\buildomatic
directory. - Run one of the following commands:
- To import data via .zip file:
js-import --input-zip <dump>.zip
- To import the report or object data in a folder structure:
js-import --input-dir <dump>
;Note, you may add --update
at the end of either of the previous commands in this step to overwrite existing imported data with newly imported data.
- To import data via .zip file: