Coder Social home page Coder Social logo

syhc006 / wordtemplatehelper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yanxiaodi/wordtemplatehelper

0.0 0.0 0.0 29.61 MB

An Office Add-in sample.

License: MIT License

C# 0.07% CSS 3.72% HTML 0.08% JavaScript 95.58% PowerShell 0.37% TypeScript 0.17%

wordtemplatehelper's Introduction

WordTemplateHelper

This repo is an Office Add-in sample, which demonstrates how to create an Office Word Add-In project, including APIs and add-in.

You can find the details of this code demo from the link(by Chinese): How to Create an Office Word Add-In, including APIs and Add-In

How to run the project

First clone this repo to your local disk. Open the solution with VS 2017.

Compile the WordTemplateHelperApi project, and run this command to launch the API:

dotnet run

The URL of the API is:

http://localhost:5000/api/

Then compile the WordTemplateHelperSource project. Use this command in the directory:

ng build --prod

Copy all files in the dist directory to the WordTemplateHelperWeb directory.

Now set the WordTemplateHelper project as the startup project and run the solution by click start button on the toolbar of VS2017.

A Word instance will be launched and you can test the Word Template Helper.

The architecture of the solution

The solution contains these projects:

  • WordTemplateHelper. This project is the configuration project of a Word Add-in, which contains a WordTemplateHelperManifest.xml of the Add-In.

  • WordTemplateHelperApi. This is the API of the Add-in. This project is developed by ASP.NET Core MVC.

  • WordTemplateHelperSource. This is the source code of the Add-in. This is a pure frontend project with Angular and TypeScript.

  • WordTemplateHelperWeb. This is the main project of the Add-In. Commonly we should spend most of the time in this project. Because of Angular, we just need to copy the files in dist directory to this project.

The representation of the Word Add-in

Users can upload local documents as a template to the server, and search, download, and apply them to local documents.

Contact

[email protected]

wordtemplatehelper's People

Contributors

yanxiaodi avatar

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.