Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

304
Views
How to get selected image content in office[Word Powerpoint] web addin?

I want to develop an office add in to add image effect to user selected image. but i did not find how to get the image content in the reference.

I have tried getSelectedDataAsync api, but it not work.

Office.context.document.getSelectedDataAsync(Office.CoercionType.Image, function(asyncResult) {
            console.log(asyncResult)
});

Console output:

OSF.DDA.AsyncResult {value: undefined, status: 'failed', error: OSF.DDA.Error}

I also tried presentation.getSelectedShapes api, but it not work either. getSelectedShapes can get the selected shape and i can get the shape type and make sure the shape is an image, but there is no method to get the image content.

PowerPoint.run(function(context) { o = context.presentation.getSelectedShapes().getItemAt(0); o.load(); console.log(o); return context.sync() })

So is there a way to get the image content in office add-in?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!