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

177
Views
Error opening original Word document from add-in

I am trying to open an existing document (the original file) from within a Word add-in. I do not access to the original file locally, only a url. I have tried:

    var newDoc = context.application.createDocument(base64Image)
    newDoc.open()
    context.sync()

If the base64Image is a .docx file type, it will open a new document as an image (not editable), otherwise I'm getting an error: Uncaught (in promise) RichApi.Error: GeneralException. When I don't pass in an argument into createDocument(), it successfully opens a blank document.

I've placed the base64Image into the current document using insertFileFromBase64 and insertInlinePictureFromBase64, so I know the base64Image file is supported.

Any other ideas how to open an editable document?

about 4 years ago · Santiago Gelvez
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!