jasperreports
jasperreports copied to clipboard
JasperReports Library v7 - Support JRXML conversion
The v7 Change Log mentions the following
breaking backward compatibility of source *.jrxml report template files and *.jrtx style template files by replacing the Apache Commons Digester based parsers with Jackson XML object serialization. *.jrxml and *.jrtx files created with version 6 or older can no longer be loaded with version 7 or newer of the library alone. The conversion from the old file formats to the new file formats and back can be made using Jaspersoft Studio 7 and later versions of it;
This means that users still having old *.jrxml report template files needs to start Jaspersoft Studio 7 to convert the file accordingly. One the other hand, there is code that allows converting one version to the other (which is great 👍).
Anyhow, I was wondering whether this functionality could be made available with the library itself, meaning that either automatically convert old JRXML or offer a function call that can convert the file if needed.
Use-case: An application might offer to users providing JRXML files on the fly. The use-case is that users still have v6 JRXML files that could be selected for a printout. With the new version 7 compiling fails. Having a way to detect, we could convert if we get provided an old v6 JRXML file.
I think this would be a great addition.