Origin Ver.2023b and Service Release 1: Operating System: Microsoft Server Standard 2022 MS Office LTSC Prof Plus 2021 (Version 2108)
Dear Origin-Team,
more than 1 year we constantly used the following command to transfer our graphs from origin to powerpoint. Without changes to the code we get the following error message:
Automation error: (80048240) Microsoft PowerPoint: Shapes.PasteSpecial : Invalid request. Origin C error (24) in X-Function code.
What I checked so far: - path to the ppt is correct - we do not have very large pictures which might increase the data transfer-time to ppt - even with a new origin project and two empty graphs this problem occurs
- I started to delete parameter from the command and found that this short version of the command still works but adding the other paramter causes the error message pef_pptslide export:=page mode:=lname slide:=3 insert:=pic;
It would be great if you can help to get the code running again.
This is a known issue with PowerPoint 2021 and we have fixed it. (jira: APPS-1440) Here are couple of options: 1. Upgrade your Origin to the latest version. 2. remove insert:=pic in the script to send graph as object into PPT. 3. Use an older version of PowerPoint.
thanks for your help. Updating origin to the lastest version as well as update of office solved this problem - i.e. the error message does not pop up anymore and pef_pptslide works again now.
fyi: Before we updated the software I tested option 2: " remove insert:=pic in the script " At least on my system this did not solve the problem.