I want to give the possibility to the user of my java application to open a word document and add mergefields to it. To do so, I presume i have to use that workflow :
- convert .doc to .html so I can open the document in a JPanel
- user place the cursor where he wants to add the mergefield and click to insert
- my app add the mergefield in html code then take the all html source code as a string and convert it back to .doc
Is that workflow the right way to do what i want to ?
I’m using aspose words 184.108.40.206 and i’m facing severals problems : bad converting .doc to .html (especially with tables), .OutOfMemoryError when converting .html to .doc or if i succeed, the new word document contains the html markup…
I’m just starting with aspose api and i’m not convince yet that what i want to do is possible…
Would I be able to properly convert my .doc to .html, insert new markup, then convert it back to .doc without making a mess of it ?