The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 pef_pptslide - graph transfer to powerpoint broken
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Karsten8

Germany
26 Posts

Posted - 07/23/2024 :  03:22:57 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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:

pef_pptslide export:=page mode:=lname slide:=3 insert:=pic keepratio:=1 left:=5 right:=20 top:=5 bottom:=10 slidemode:=insert srcf:=folder$;


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.

Thanks a lot and best regards,

Karsten8.

YimingChen

1638 Posts

Posted - 07/23/2024 :  11:46:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

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.

Thank you
James
Go to Top of Page

Karsten8

Germany
26 Posts

Posted - 07/31/2024 :  01:32:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Dear James,

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.

The topic can be closed.

With best regards,

Karsten8.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000