Jasper IReport XML

0

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 

ahmy_1's picture
23
Joined: Jun 9 2016 - 12:40am
Last seen: 10 months 5 days ago

2 Answers:

1

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.

hozawa's picture
52642
Joined: Apr 24 2010 - 4:31pm
Last seen: 5 months 1 week ago
0

Its great hearing that its possible. Thank you for your respawns. Can u give me more detail inforamtion like hot to do one simple export/imporst as xml

ahmy_1's picture
23
Joined: Jun 9 2016 - 12:40am
Last seen: 10 months 5 days ago
Feedback
randomness