You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are developing a Word add-in, and one of the key features is the ability to:
-Retrieve the Word document as a Base64 string (including OOXML content such as custom XML parts) and replace the document content using the method below:
// Insert the modified Base64 OOXML back into the document Retrving base64 code.txt
However, when we replace the content and save the document, retrieving the Base64 content again does not provide the updated or valid Base64 string.
await context.document.insertFileFromBase64(base64Content, "Replace", {
importTheme: true,
importStyles: true,
importParagraphSpacing: true,
importPageColor: true,
importChangeTrackingMode: true,
importCustomProperties: true,
importCustomXmlParts: true
});
Here are my questions:
Are there any limitations with the insertFileFromBase64 method when inserting content? If so, is there any documentation or reference for this?
After replacing the content using the above method and saving the document, why does the Base64 retrieved afterward not reflect the updated content?
This issue is a blocker for us, and I would appreciate your suggestions on how to resolve it.
The text was updated successfully, but these errors were encountered:
We are developing a Word add-in, and one of the key features is the ability to:
-Retrieve the Word document as a Base64 string (including OOXML content such as custom XML parts) and replace the document content using the method below:
// Insert the modified Base64 OOXML back into the document
Retrving base64 code.txt
However, when we replace the content and save the document, retrieving the Base64 content again does not provide the updated or valid Base64 string.
await context.document.insertFileFromBase64(base64Content, "Replace", {
importTheme: true,
importStyles: true,
importParagraphSpacing: true,
importPageColor: true,
importChangeTrackingMode: true,
importCustomProperties: true,
importCustomXmlParts: true
});
Here are my questions:
This issue is a blocker for us, and I would appreciate your suggestions on how to resolve it.
The text was updated successfully, but these errors were encountered: