DocX icon indicating copy to clipboard operation
DocX copied to clipboard

Docm files lose extension after saving

Open AlexLunyov opened this issue 3 years ago • 1 comments

If we open .docm document and then save it we unexpectedly get a new file named *.docm.docx So I have to rename it manually for now.

Thanks! I use 2.1.0 version of DocX.

AlexLunyov avatar May 28 '22 09:05 AlexLunyov

Hi,

Yes you are right. This will be fixed in v2.4.

In the meantime, you can go in file Xceed,Document.NET/Src/Document.cs, In method SetFileName and add : " || filename.EndsWith( ".docm" ) " to support "docm" documents.

Thank you

XceedBoucherS avatar May 31 '22 15:05 XceedBoucherS