Forum


Replies: 7   Views: 87
Unordered list showing as ordered list after word version 2008 upgrade

Posted by coolaustralia  · 16-09-2020 - 01:04

Word version 2007 displays unordered lists fine but Word version 2008 (released recently) shows them as ordered lists. Note that these are internal Microsoft version numbers, not years.

The examples are literally the same docx file, just opened in different versions of word.

2007 - https://i.imgur.com/vLDpTsN.png
2008 - https://i.imgur.com/AxzQt1N.png

 

Posted by admin  · 16-09-2020 - 06:18

Edited by admin · 16-09-2020 - 10:00

Hello,

What version of MS Word are you using?, not the revision number but the main version (MS Word 2007, MS Word 2010, MS Word 2013, MS Word 365... How are you generating the list? using embedHTML, addList or a template?

We have tested the lists using the latest revision of MS Word 2019 and the output is correct in all cases, but doing more tests we have checked that the latest release of MS Word 365 has added a maximum value to numId in lists that doesn't fit OOXML standard. We are doing more tests, please post the MS Word program you are using (MS Word 2007, 2010, 2019, 365...)

Please send the DOCX to contact[at]phpdocx.com so we can check it with all versions from MS Word 2007 to MS Word 2019, MS Word Online, MS Word 365 and LibreOffice.

Regards.

Posted by vpratfr  · 17-09-2020 - 09:57

Hi,

We are seeing the same issue on Ms Word 2019, latest. Yesterday, the documents were fine. This thursday they all appear with those ordered list instead of unordered lists.

We generate the Word file from HTML (ul > li tags).

Our code has not changed since yesterday.

All documents (including the ones generated earlier) are showing the same defect.

 

Posted by nbiz  · 18-09-2020 - 10:02

Hello,

I've just updated to PHPDocx10 to resolve this issue but the problem remains.

Do we need to put specific options or something?

Thanks,

Posted by admin  · 18-09-2020 - 10:25

Edited by admin · 18-09-2020 - 10:41

Hello,

No, you just need to download and use the new package available to download on MY PHPDOCX page. All users that are using the new package have checked the problem has been solved with all versions that have been updated (MS Word 2019, MS Word 365 and MS Word Online). Also all tests we have done are correct as well, and the included samples generate correct outputs in all cases.

Please check you are using the new package and not an old one and your server isn't caching the code you are running. Also please run one the included samples, such as Layout/createListStyle/sample_1.php and check its output.

If you send to contact[at]phpdocx.com a sample DOCX output you get we'll check it.

Regards.

Posted by nbiz  · 18-09-2020 - 12:00

The sample works fine indeed, but when merging two template, still have the problem (bullet are changed to ordered list).

Any advice please? 

Posted by admin  · 18-09-2020 - 12:49

Hello,

Thanks for the information, mergeDocx needed the same patch. It has been applied to all phpdocx 10.0 packages so it's available to be downloaded with the package. The dev team has checked the classes and no other needs to apply it.

Regards.