html-to-docx icon indicating copy to clipboard operation
html-to-docx copied to clipboard

Can't open file in Microsoft Word

Open ohitsdoh opened this issue 2 years ago • 4 comments

Tried this on both Windows and Mac, getting the same error. image

I did try to open it in both LibreOffice and Pages -- both work, but not in Word.

ohitsdoh avatar Apr 19 '23 15:04 ohitsdoh

@ohitsdoh Could you please attach the code you used to generate it with the html?

privateOmega avatar Apr 20 '23 05:04 privateOmega

The same issue is happening for me as well It opens in any other software but not in word

musmanfaisal avatar Oct 15 '23 10:10 musmanfaisal

In my case it was the same problem as described in: https://github.com/privateOmega/html-to-docx/issues/57#issuecomment-794646955 and adding missing margin params fixed it

grin avatar Oct 27 '23 11:10 grin

I have same issue that cannot open the doc/docx file with MS Word (only MS Word)

const docxDocument = await HTMLtoDOCX(
   '<!doctype html><html><head></head><body>' + dataReplaced + '</body></html>'
);

dataReplaced is a html string. Please help me out.

trinhphong avatar Apr 10 '24 15:04 trinhphong