دنبال کننده ها

۱۳۹۷ فروردین ۶, دوشنبه

Replace_embedded() of python docx not able to replace excel objects in MS word template

[ad_1]

doc = DocxTemplate("Post RFS Handover_Template.docx")



doc.replace_embedded('Handover_4OXE-61.docx','Handover-3CAU-67.docx')
#this is working



doc.replace_embedded('Tool List_1.xlsx','Master_Tracker_v8.5.xlsx')


In this case, file is not replaced.



I am giving file path correctly



[ad_2]

لینک منبع