Name: Word-Add-in-JavaScript-SliceDataChunks
Owner: Office Developer
Description: Shows how to use JavaScript in a Word 2013 task pane add-into get the current document and slice it into chunks of data.
Created: 2015-08-18 17:55:21.0
Updated: 2018-04-11 22:15:20.0
Pushed: 2018-01-31 20:24:54.0
Homepage: null
Size: 945
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Table of contents
This sample shows how to use JavaScript in a Word 2013 task pane add-in to get the current document and slice it into chunks of data in user-defined sizes. The data could then be submitted to a service (such as an editing service, a translation service, or an e-book publishing service).
This sample requires the following:
The sample solution contains the following key files:
WordDocumentEmitter project
WordDocumentEmitterWeb project
The DocumentForEditing.docx file is set as the Start Document property of the task pane add-in. The document is large enough (500 pages) to be sliced into a number of discrete chunks of data.
The sample demonstrates:
The add-in displays the number of slices and the size of each slice, along with buttons you can use to view the content of each slice.
This sample displays the slice information to the user, but your add-in will probably send the data slices to a web service. The web service can then rebuild the presentation from the slices.
Copyright (c) 2015 Microsoft. All rights reserved.
This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.