scanny / python-pptx

Create Open XML PowerPoint documents in Python
MIT License
2.35k stars 510 forks source link

'add_ole_object()'cannot embed Excel file in slide based on version 0.6.21 #822

Open tuoqingyuze opened 2 years ago

tuoqingyuze commented 2 years ago

we used python 3.7, PowerPoint 2016.

The API is <slide_1.shapes.add_ole_object('Info.xlsx', 'Excel.Sheet.12', left, top, width, height)>, but a problem occurred after opening the pptx, the errors is as follows:

  1. PowerPoint found a problem with content in D:\Info.pptx. PowerPoint can attempt to repair the presentation. If you trust the source of this presentation, click Repair.
  2. PowerPoint couldn't read some content in Info.pptx[Repaired] and removed it. Please check your presentation to see if the rest of it looks ok.

Is there any missing key point or did we use error version in this process?

image image