|  05-11-2020, 03:03 AM | #1 | 
| Member  Posts: 22 Karma: 10 Join Date: Apr 2019 Device: edge | 
				
				Can't open converted docx
			 
			
			Hi, I attach an xhtml file (renamed to .txt) that converts ok to docx. However, the docx (also attached)  can't be opened in word.
		 | 
|   |   | 
|  05-11-2020, 08:13 AM | #2 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			There will be something in there that word doesn't like. Sadly word gives us no useful eror message so impossible to say what. You can try deleting sections of the html file and see if you can narrow it down.
		 | 
|   |   | 
| Advert | |
|  | 
|  05-11-2020, 08:48 AM | #3 | 
| Member  Posts: 22 Karma: 10 Join Date: Apr 2019 Device: edge | 
			
			Ok, thanks for your quick response though :-)
		 | 
|   |   | 
|  05-11-2020, 11:41 AM | #4 | 
| Bibliophagist            Posts: 48,100 Karma: 174315444 Join Date: Jul 2010 Location: Vancouver Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos | 
			
			When I took a look at the xhtml file by opening it in Word, there were complaints about XML elements that are no longer supported in Word.  A conversion to RTF gave a file that could be opened in Word but quite a bit of the layout vanished.
		 | 
|   |   | 
|  05-15-2020, 01:55 AM | #5 | 
| Member  Posts: 22 Karma: 10 Join Date: Apr 2019 Device: edge | 
			
			Thanks, do you know by any chance which xhtml-elements that are not supported by docx, so we can avoid using those in our mark-up :-) /Tage | 
|   |   | 
| Advert | |
|  | 
|  05-15-2020, 02:02 AM | #6 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			xhtml elements are notused in docx, they get converted to docx elements. The question is what of those elements word does not like, and the only way to find that out is to repeatedly remove things from the problem file till you narrow down the markup causing the issue.
		 | 
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| display: block for image converted from docx | quinta@ebf.cz | Conversion | 4 | 03-05-2019 03:00 AM | 
| DOCX to EPUB and Tables are not converted correctly | lbdyck | Conversion | 4 | 01-17-2017 06:27 AM | 
| Open HTML or DOCX as new book | DiapDealer | Editor | 2 | 01-12-2017 06:45 AM | 
| Converted file to DOCX is not readable by Word | HagaWaga | Conversion | 1 | 01-28-2016 11:47 AM | 
| How to keep bold texts in converted pdf, when you convert docx to pdf? | Foxitoff | Conversion | 1 | 11-04-2015 10:24 PM |