Hi, guys is there a way to SAVE AS XML file from word document and import it to jasper, let me give you an example:
I have a word document with header Hello World and i save the file as XML so when i create new report i go to xml in Jasper Ireport and i copy/paste the xml from the word document so i can get Hello World in ireprot without creating anything?
I know there must be something like a convertor. I just wonder did some one create something similar
Yes. I did create one for my customer. I also created one form excel and powerpoint too.
There are 2 ways to do this.
First is to directly convert the xml file. Xml specifications of these files are made public so this is possible.
Second is to use Apache Poi to read the MS Office xml and to generate jrxml using dynamic report creation technique. Warning on this approach is that Apache Poi doesn't fully support all MS Office features.
So, it is possible to write a converter.
Just as a warning, not all features can be mapped but a simple report can be converted.