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

257
Views
La propiedad 'acciones' no existe en el tipo 'tipo de Office' cuando se usa el complemento del panel de tareas de Word

Me encargaron agregar una función adicional a nuestro complemento de Word.

Estamos tratando de agregar accesos directos personalizados.

He usado el código que se proporcionó en https://docs.microsoft.com/en-us/office/dev/add-ins/design/keyboard-shortcuts#configure-the-manifest y cuando uso el código obtengo el error: la propiedad 'acciones' no existe en el tipo 'tipo de oficina'

Así es como se ve el código:

 Office.actions.associate('SHOWTASKPANE', function () {    return Office.addin.showAsTaskpane()        .then(function () {            return;        })        .catch(function (error) {            return error.code;        }); });

Revisé el archivo Office.js y no puedo ver si falta algo.

su ayuda realmente sería apreciada

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Puede agregar estas funciones al alcance global y no usar la acción lo ayudará.

 function getGlobal() { return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : undefined; } let g = getGlobal() g.SHOWTASKPANE= function () {    return Office.addin.showAsTaskpane()        .then(function () {            return;        })        .catch(function (error) {            return error.code;        }); });;
about 4 years ago · Juan Pablo Isaza Report

0

Prueba esto:

 npm install @types/office-js --save-dev
about 4 years ago · Juan Pablo Isaza Report
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!