Comments (6)
Thank you for letting us know about this issue. We will take a look shortly. Thanks.
from office-js.
Hi @NiteshParmarCoh Thanks for reporting this issue. But when I copy your provided code using script lab, and click run button, nothing is happened. Could you please help to provide more details about code in order for us to better repro or investigation?
from office-js.
Please import the below code in the script lab.
description: ''
host: EXCEL
api_set: {}
script:
content: >
$("#create-custom-xml-part").on("click", () =>
tryCatch(createCustomXmlPart));
async function createCustomXmlPart() {
await Excel.run(async (context) => {
const originalXml = "<Reviewers><Reviewer>test</Reviewer></Reviewers>";
const customXmlPart = context.workbook.customXmlParts.add(originalXml);
const xmlBlob = customXmlPart.getXml();
await context.sync();
console.log("xmlBlob.value:", xmlBlob.value);
});
}
async function tryCatch(callback) {
try {
await callback();
} catch (error) {
console.error(error);
}
}
language: typescript
template:
content: "<section class=\"samples ms-font-m\">\n\t<button id=\"create-custom-xml-part\" class=\"ms-Button\">\n <span class=\"ms-Button-label\">Create XML part</span>\n </button>\n</section>"
language: html
style:
content: |
section.samples {
margin-top: 20px;
}
section.samples .ms-Button, section.setup .ms-Button {
display: block;
margin-bottom: 5px;
margin-left: 20px;
min-width: 80px;
}
language: css
libraries: |
https://appsforoffice.microsoft.com/lib/1/hosted/office.js
@types/office-js
[email protected]/dist/css/fabric.min.css
[email protected]/dist/css/fabric.components.min.css
[email protected]/client/core.min.js
@types/core-js
[email protected]
@types/[email protected]
from office-js.
Hi @NiteshParmarCoh, Thanks for this details. I can repro this, the excel Api set operation can't redo/undo. It's a by-design behavior. Also please go to community to vote on undo support: Undo to help accelerate it! We value your feedback and will consider it in our future feature reviews.
from office-js.
This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!
from office-js.
This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.
from office-js.
Related Issues (20)
- Spam addin icon shows up in taskpane apps and in the ribbon in new look outlook. HOT 4
- New Outlook for Mac, the "Work Offline" feature does not block emails if the OnSend add-in is installed and configured after a restart of Outlook HOT 3
- Outlook Add-in Centralized Deployment - Not working HOT 8
- [Translation] Outlook report button translation HOT 1
- Word hangs when attempting to undo a change that insert four or more comments HOT 4
- How to use workbox in Excel Addin HOT 3
- Access custom spam reporting features in other menus HOT 1
- In a custom Spam reporting add-in, microsoft defender is not triggered HOT 1
- Custom function "error installing functions" via Admin Managed. Working on Local and Sideload HOT 21
- Get username of current user HOT 3
- Spam addin event.options is an array in classic outlook and is an object/structure in browsers/new look outlook. HOT 1
- Outlook 365 add-in not loading on MAC/OS new Outlook app. HOT 8
- Powerpoint Add-in is not updating automatically without any notification HOT 5
- Custom function handling of Entity Value is broken again HOT 6
- Office.context.roamingSettings.get() size limit HOT 2
- Word close API not working HOT 6
- Excel close is not working HOT 10
- Powperpoint close API HOT 6
- Manifest file sideloads on Excel web but does not sideload on Mac or Windows os HOT 2
- Opening dialog in iframe for an Excel custom function handler fails on alternate invocations HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from office-js.