0

I have a .dot file using which i will be creating doc file with values replaced.

eg: .dot file having <claimId>

I will replace <claimId> with real claim Id say 1234 and generate a doc file. I am using Apache POI HWPFDocument, when using HWPFDocument i am getting issues when i replace text inside table.

So i tried XWPFDocument i can feed only .dotx files.

I have no issue when using dotx file with XWPFDocument and successfully generated docx files. Now i need to convert .dot files to .dotx files from java. Can someone help me on this...

centic
  • 15,565
  • 9
  • 68
  • 125
Arasu
  • 2,078
  • 6
  • 40
  • 67

1 Answers1

1

There is no automated way to do this conversion in Apache POI as far as I know.

You can manually convert .dot files to .dotx by opening the file in Microsoft Word and saving it in the newer format.

centic
  • 15,565
  • 9
  • 68
  • 125
  • My problem is, client may not have the latest MS Office to update the documents to .dotx formats – Arasu Oct 21 '15 at 09:00