Problem opening subreport of IReports on another terminal

0

I created a report that looks for information in a subreport to show all information.

However, when running on the development machine, the report appears without any problem in both the IDE and running the generated JAR later.

But when running the JAR on another computer it does not load. Accusing that the subreport was not found.

I found in some forums solutions how to change the search path of the sub but I did not succeed.

    
asked by anonymous 24.05.2017 / 16:08

1 answer

0

I have identified that the report parameter that searched for the subreport informed the path of the file on my computer as in another terminal it will change the name and path the sub was not found.

In case the system is always installed in an equal directory for all I inserted the subreport in a location that I know that on all computers will exist and I changed the configuration of the main report to search in this specific field.

The location where I changed the path is in the Subreport property - > Subreport Expression - > in this field I indicated the absolute path.

    
01.06.2017 / 17:01