ahmy_1 Posted July 2, 2018 Share Posted July 2, 2018 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 Link to comment Share on other sites More sharing options...
hozawa Posted July 2, 2018 Share Posted July 2, 2018 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. Link to comment Share on other sites More sharing options...
ahmy_1 Posted July 3, 2018 Author Share Posted July 3, 2018 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 Link to comment Share on other sites More sharing options...
wasseydev Posted March 5, 2021 Share Posted March 5, 2021 Old post I know, but I have started doing something that may do what you are after. Refer to this post:https://community.jaspersoft.com/questions/1181631/converting-word-documents-jasper-reportsI have a conversion tool that could help. It is still in development, but may be worth your consideration if you need to achieve this in future. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now