Jump to content
Changes to the Jaspersoft community edition download ×

Location of Data Source Config Info


keithrbennett

Recommended Posts

In case this is useful, I'm pasting here some notes from my wiki regarding where the report data source information is stored.  Of course, any corrections and improvements are welcome.

----

iReport Data Source Configurations

When saving all information required to reproduce a report in iReport, keep in mind that the data source information is not stored in the .jrxml file. This is a good thing, because you may want to be able to read a sample data file (e.g. an XML file) while defining the report but use a Java object at runtime for production.

While it is easy to store and pass around a .jrxml file, the report data source is not so easy. It is defined in the ireport.properties file, which is located in the following subdirectory of your home directory:

.ireport/3.7.3/config/Preferences/com/jaspersoft

Of course, replace 3.7.3 with whatever version of iReport you're using. In the ireport.properties file you'll find the connections specified in connection.1, connection.2, etc.  You should be able to copy configurations from one users's properties file to another's.  However, filespecs may contain absolute directory names that will need to be modified.

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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