Info
Version: | 0.1.0 |
Author(s): | Sergey Shoshin |
Last Update: | Monday, December 4, 2017 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/shoshins/open-xml-variable-replacer |
NuGet Url: | https://www.nuget.org/packages/DocumentFormat.OpenXml.VariableReplacer |
Install
Install-Package DocumentFormat.OpenXml.VariableReplacer
dotnet add package DocumentFormat.OpenXml.VariableReplacer
paket add DocumentFormat.OpenXml.VariableReplacer
DocumentFormat.OpenXml.VariableReplacer Download (Unzip the "nupkg" after downloading)
Dependencies
- DocumentFormat.OpenXml(>= 2.7.2)
Tags
{
MainDocumentPart mainPart = document.MainDocumentPart;
Dictionary<string, string> replacers = new Dictionary<string, string>(32);
_openXmlVariableReplacer.ReplaceVariables(mainPart.Document, replacers);
}.