CommonNetFuncs.Word.OpenXml
4.3.6
dotnet add package CommonNetFuncs.Word.OpenXml --version 4.3.6
NuGet\Install-Package CommonNetFuncs.Word.OpenXml -Version 4.3.6
<PackageReference Include="CommonNetFuncs.Word.OpenXml" Version="4.3.6" />
<PackageVersion Include="CommonNetFuncs.Word.OpenXml" Version="4.3.6" />
<PackageReference Include="CommonNetFuncs.Word.OpenXml" />
paket add CommonNetFuncs.Word.OpenXml --version 4.3.6
#r "nuget: CommonNetFuncs.Word.OpenXml, 4.3.6"
#:package CommonNetFuncs.Word.OpenXml@4.3.6
#addin nuget:?package=CommonNetFuncs.Word.OpenXml&version=4.3.6
#tool nuget:?package=CommonNetFuncs.Word.OpenXml&version=4.3.6
CommonNetFuncs.Word.OpenXml
This lightweight project contains helper methods related to MS Word formatted documents (.doc & .docx).
Contents
ChangeUrls
Helpers that search for and change URLs in .doc and .docx files.
Common Usage Examples
<details> <summary><h3>Usage Examples</h3></summary>
ChangeUrlsInWordDoc
Look for specific URLs in a word document and change them to a different URL.
FileStream stream = new(@"C:\Documents\UrlTest.docx");
bool success = ChangeUrls.ChangeUrlsInWordDoc(stream, "http://google.com", "http://yahoo.com", true); // Replaces all "yahoo.com" URLs in the document with "google.com"
// Alternatively, use a dictionary for replacements
Dictionary<string, string> urlsToUpdate = new()
{
{ "http://google.com", "http://yahoo.com" },
{ "http://facebook.com", "http://meta.com" },
{ "http://tumblr.com", "http://imgr.com" }
};
bool success = ChangeUrls.ChangeUrlsInWordDoc(stream, urlsToUpdate); // Replaces all key URLs in the dictionary with their associated value
ChangeUrlsInWordDocRegex
Look for URLs that match a regex pattern in a word document and replace the matched string with a new one.
FileStream stream = new(@"C:\Documents\UrlTest.docx");
bool success = ChangeUrls.ChangeUrlsInWordDoc(stream, @"^(http:\/\/)", "https://", true); // Replaces "http://" with "https://" in all URLs in the document
// Alternatively, use a dictionary for replacements
Dictionary<string, string> urlsToUpdate = new()
{
{ @"^(http:\/\/)", "https://" },
{ @"(yahoo\.com)", "google.com" }
};
bool success = ChangeUrls.ChangeUrlsInWordDoc(stream, urlsToUpdate); // Replaces all regex matches with the keys in the dictionary with their associated values
</details>
Installation
Install via NuGet:
dotnet add package CommonNetFuncs.Word.OpenXml
License
This project is licensed under the MIT License - see the LICENSE file for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- DocumentFormat.OpenXml (>= 3.5.1)
- NLog.Extensions.Logging (>= 6.2.1)
- ZLinq (>= 1.5.6)
-
net10.0
- DocumentFormat.OpenXml (>= 3.5.1)
- NLog.Extensions.Logging (>= 6.2.1)
- ZLinq (>= 1.5.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.3.6 | 31 | 9/18/2026 |
| 4.3.5 | 45 | 9/15/2026 |
| 4.3.4 | 105 | 8/27/2026 |
| 4.3.3 | 104 | 8/24/2026 |
| 4.3.2 | 113 | 8/14/2026 |
| 4.3.1 | 106 | 8/11/2026 |
| 4.3.0 | 106 | 8/3/2026 |
| 4.1.14 | 113 | 7/31/2026 |
| 4.1.13 | 117 | 7/31/2026 |
| 4.1.12 | 110 | 7/31/2026 |
| 4.1.11 | 130 | 7/9/2026 |
| 4.1.0 | 126 | 6/5/2026 |
| 4.0.53 | 126 | 5/28/2026 |
| 4.0.43 | 122 | 5/14/2026 |
| 4.0.40 | 130 | 5/10/2026 |
| 4.0.39 | 127 | 5/10/2026 |
| 4.0.37 | 127 | 5/9/2026 |
| 4.0.36 | 110 | 5/8/2026 |
| 4.0.31 | 129 | 4/21/2026 |