Comments (6)
I have the same error when try to highlight or search words with some style in document which has more than 100 pages.
Word.run(async (context) => {
let paragraphs: Word.ParagraphCollection = context.document.body.paragraphs;
let paragraphsCollections: Word.RangeCollection[] = [];
paragraphs.load("items/NoPropertiesNeeded");
await context.sync();
console.log('Paragraphs Loaded');
for (var index = 0; index < paragraphs.items.length; index++) {
let wordRanges: Word.RangeCollection = paragraphs.items[index].getTextRanges([" "]);
paragraphsCollections.push(wordRanges.load("font, text"));
}
console.log('Prepare for loading words');
await context.sync();
console.log('Words Loaded');
console.log(paragraphsCollections.length);
paragraphsCollections.forEach((element, index, array) => {
//Words processing
})
console.log("processed");
return context.sync();
}).catch((error) => {
this.errorEmitter.emit(error);
});
It works fine, but when office try to save changes it crashes
exampleDoc.docx
from office-js.
Hi @JuaneloJuanelo
Please advice maybe I doing something in wrong way?
from office-js.
Transferring this issue from OfficeDev/office-js-docs into OfficeDev/office-js, as it seems to be a product bug. @AlexYovenko and @AndrewGorovoy are you still observing these issues?
from office-js.
i just tried the sample code to replace with a 100+ page document. It was slow but all the code got successfully executed. Did not get any errors.
from office-js.
i just tried the sample code to replace with a 100+ page document. It was slow but all the code got successfully executed. Did not get any errors.
Did you try it with the example document?
from office-js.
Issue still happening, it happens randomly from time to time
from office-js.
Related Issues (20)
- Office library not loading for iOS 17.4 HOT 3
- Range references stored in worksheet.names are corrupted on first use of add-in upon install HOT 4
- Request for a Union method for Excel HOT 3
- ExtendedOverrides is not a valid child element of OfficeApp HOT 4
- GetAttachmentsAsync does not return the list of attachments in Outlook Online HOT 2
- There is no event for drag and drop of email id in to cc or bcc section in outlook office add-in HOT 2
- Several customers get stuck installing our Powerpoint add-in HOT 2
- Smart Alert Feature not working in Outlook Mac Thick Client on OnAppointmentSend events. HOT 6
- PowerPoint add-in not displaying in Slide Show display HOT 1
- Integrated spam-reporting add-in: Office.context undefined HOT 2
- How Nested App Authentication can be setup in azure. HOT 5
- Unable to publish manifest file - support URL is not accessible HOT 10
- I have developed an outlook add-in. It is working fine in web version. But not working in desktop outlook app. HOT 17
- Excel add-in not updating for some clients HOT 6
- getUserIdentityTokenAsync returning failed "An internal server error" HOT 11
- insertFileFromBase64 causes accumulation of styles HOT 2
- Failed to install or load custom functions addin On microsoft 365 Web Production HOT 3
- Excel Add-in online - function wizard function arguments broken HOT 4
- Office.context.document.getFileAsync return corrupted file
- Excel Taskpane Add-in Iframe Unable to load blob URLs HOT 2
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.