OfficeDev/Open-Xml-PowerTools

Name: Open-Xml-PowerTools

Owner: Office Developer

Description: null

Created: 2015-07-22 15:41:03.0

Updated: 2018-01-16 13:14:42.0

Pushed: 2018-01-18 02:27:51.0

Homepage: null

Size: 22219

Language: PowerShell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

?Open-XML-PowerTools

The Open XML PowerTools provides guidance and example code for programming with Open XML Documents (DOCX, XLSX, and PPTX). It is based on, and extends the functionality of the Open XML SDK.

It supports scenarios such as:

Copyright (c) Microsoft Corporation 2012-2017 Portions Copyright (c) Eric White 2016-2017 Licensed under the Microsoft Public License. See License.txt in the project root for license information.

News

New Release! Version 4.4.

This version has a completely re-written WmlComparer.cs, which now supports nested tables and text boxes. WmlComparer.cs is a module that compares two DOCX files and produces a DOCX with revision tracking markup. It enables retrieving a list of revisions.

Open-Xml-PowerTools Content

There is a lot of content about Open-Xml-PowerTools at the Open-Xml-PowerTools Resource Center at OpenXmlDeveloper.org

See:

Build Instructions

Recently, we've updated the GitHub repo so that it pulls the Open-Xml-Sdk via NuGet. The video at the following link shows how to clone and build the Open-Xml-PowerTools when pulling the Open-Xml-Sdk via NuGet. It uses Visual Studio 2017 Community Edition.

Build Open-Xml-PowerTools

The following instructions are somewhat outdated at this point.

For this release, you need Visual Studio 2013 or 2015 installed. The following video shows gitting and building the Open-Xml-Sdk and Open-Xml-PowerTools using Visual Studio 2015 Community Edition, which is free.

If you are using Visual Studio 2013, make sure that you have Update 4 for Visual Studio 2013. Previous versions of Visual Studio 2013 do not work.

You can use Visual Studio 2012 to build the Open-Xml-Sdk and Open-Xml-PowerTools libraries and run the examples. The xUnit tests do not work with Visual Studio 2012.

The following video walks through the process building Open-Xml-PowerTools:

Installing, Building, and Running Open-Xml-PowerTools 4.0

In order to build Open-Xml-PowerTools 4.0 and later, you need to retrieve both the Open-Xml-Sdk and the Open-Xml-PowerTools repos from GitHub. The projects are set up expecting that the Open-Xml-Sdk repo and the Open-Xml-PowerTools repo are siblings to each other in the file system. The Open-Xml-PowerTools projects look for the Open-Xml-Sdk in a directory with that exact name (Open-Xml-Sdk).

If you want to use the Open-Xml-PowerTools Cmdlets, one easy way to do this is to put both the Open-Xml-Sdk and the Open-Xml-PowerTools repos in the ~/Documents/WindowsPowerShell/Modules directory. PowerShell by default looks for modules in this directory, so if we place these repos in this directory, after building the Open-Xml-Sdk, we can import the Open-Xml-PowerTools module and start using the Cmdlets. If the WindowsPowerShell/Modules directory doesn't exist, you can create it.

If you don't care about the Open-Xml-PowerTools Cmdlets, then you can put the two repos into any directory you like, so long as you make them siblings to each other.

The short form of the installation instructions are:

Change Log

Version 4.3 : June 13, 2016

Version 4.2 : December 11, 2015

Version 4.1.3 : November 2, 2015

Version 4.1.2 : October 31, 2015

Version 4.1.1 : October 21, 2015

Version 4.1.0 : September 27, 2015

Version 4.0.0 : August 6, 2015

Version 3.1.11 : June 30, 2015

Version 3.1.10 : June 14, 2015

Version 3.1.09 : April 20, 2015

Version 3.1.08 : March 13, 2015

Version 3.1.07 : February 9, 2015

Version 3.1.06 : February 7, 2015

Version 3.1.05 : January 29, 2015

Version 3.1.04 : December 17, 2014

Version 3.1.03 : December 9, 2014

Version 3.1.02 : December 1, 2014

Version 3.1.01 : November 23, 2014

Version 3.1.00 : November 13, 2014

Version 3.0.00 : October 29, 2014

Procedures for enhancing Open-Xml-PowerTools

There are a variety of things to do when adding a new CmdLet to Open-Xml-PowerTools:

Procedures for enhancing the core C# modules


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.