Jump to content
We've recently updated our Privacy Statement, available here ×

Unable to merge two word files from different  sources


wailbouhadda31

Recommended Posts

Unable to merge two word files from different  sources. One docx file is created with java with jasper reports library and i can read and open the file and its working, and the other file is created with microsoft word.

when i try with two word files created with jasper reports it works fine, and when i try two word files created with microsoft word also work fine but when i try to mix files i got namespaces errors  namespace not bound in my project i need to create a word file from some data i collected and stored in database with a word file imported by a user and i should combine the two files. I use this answer to merge the word file https://stackoverflow.com/a/58694535

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Thank you for your reply, the problem is indeed related to Apache poi internal behaviour, I already mentioned the src code i 'm using this answer  https://stackoverflow.com/a/58694535. I tried docx library in node.js but i got the same problem. but in the end i did fix the problem by using python-docx library, I created a simple api with python that gets the docx files from different sources and merge them to a single file.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...