Coder Social home page Coder Social logo

officedev / word-add-in-documentassembly Goto Github PK

View Code? Open in Web Editor NEW
29.0 14.0 20.0 1.14 MB

A document assembly sample using a "Statement of Work" template that demonstrates how to use the Word JavaScript API.

License: Other

CSS 0.16% JavaScript 99.71% HTML 0.10% C# 0.03%

word-add-in-documentassembly's Introduction

[ARCHIVED] Document assembly Word add-in sample

Note: This repo is archived and no longer actively maintained. Security vulnerabilities may exist in the project, or its dependencies. If you plan to reuse or run any code from this repo, be sure to perform appropriate security checks on the code or dependencies first. Do not use this project as the starting point of a production Office Add-in. Always start your production code by using the Office/SharePoint development workload in Visual Studio, or the Yeoman generator for Office Add-ins, and follow security best practices as you develop the add-in. This Word add-in will show you how to:

  1. Insert a template content from OOXML.
  2. Add boilerplate paragraphs.
  3. Insert an image.
  4. Search the text and insert content controls.
  5. Change the text of the content controls.
  6. Insert content from a file.
  7. Search by using wildcards.
  8. Insert footers into the document.
  9. Customize and insert OOXML by using setSelectedDataAsync API.
  10. dsdsds

Prerequisites

To use the Document assembly add-in sample, the following are required.

  • Visual Studio 2015 or Visual Studio 2013 with Update 5.
  • Word 2016, or any client that supports the Word Javascript API.

Run the sample add-in

Open the solution in Visual Studio and select F5 to run the sample. An instance of Word will start and you will see the add-in loaded into Word.

Questions and comments

We'd love to get your feedback about the Document assembly Word add-in sample. You can send your questions and suggestions to us in the Issues section of this repository.

Questions about add-in development in general should be posted to Stack Overflow. Make sure that your questions or comments are tagged with [office-js], [word], and [API].

Learn more

Here are more resources to help you create Word Javascript API based add-ins:

Copyright

Copyright (c) 2015 Microsoft. All rights reserved.

word-add-in-documentassembly's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

word-add-in-documentassembly's Issues

Is that possible to call functions in home.js from <iframe>?

I have some pages, and use them in my word add-in, by <iframe>.

But I can not call functions in home.js from my pages.

These are the codes in my pages :

window.parent.test();

and codes in home.js :

function test() {
    console.log('It's worked!');
}

Error while running from word online

Hi,

When I am trying to run this add-in from browser as word online document, it is throwing error that the browser does not support this. Here is the full error -
ErrorCode = GeneralException, ErrorMessage = This browser does not support the requested API.

Does this or overall office fabric not support word online?

Thanks!
Suman

Append and not replace

Hi

On this example you show how to put content of a XML by using the setSelectedDataAsync to insert the content.
But is there a way to put content many times without replacing the current selection?
To be more clear is there a way to unselect the content we put by using setSelectedDataAsync ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.