SharpDocx 2.3.0
See the version list below for details.
dotnet add package SharpDocx --version 2.3.0
NuGet\Install-Package SharpDocx -Version 2.3.0
<PackageReference Include="SharpDocx" Version="2.3.0" />
paket add SharpDocx --version 2.3.0
#r "nuget: SharpDocx, 2.3.0"
// Install SharpDocx as a Cake Addin #addin nuget:?package=SharpDocx&version=2.3.0 // Install SharpDocx as a Cake Tool #tool nuget:?package=SharpDocx&version=2.3.0
SharpDocx enables you to generate Word documents based on a view. The view itself is a Word document and can be as simple or complex as you want.
- Use C# code inside the view for inserting text, images or tables.
- Supports the MVC pattern, so you can use your own C# model in the template.
- Supports .NET Framework 3.5/4.5+, .NET Standard 2.0, .NET Core 3.1, .NET 5.0 and .NET 6.0.
- Based on Microsoft's Open XML SDK.
- Source code, tutorial and examples on GitHub.
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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net35 is compatible. net40 is compatible. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 3.5
- DocumentFormat.OpenXml (>= 2.18.0)
-
.NETFramework 4.0
- DocumentFormat.OpenXml (>= 2.18.0)
-
.NETFramework 4.5
- DocumentFormat.OpenXml (>= 2.18.0)
-
.NETStandard 2.0
- DocumentFormat.OpenXml (>= 2.18.0)
- Microsoft.CodeAnalysis.CSharp (>= 2.10.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on SharpDocx:
Package | Downloads |
---|---|
TS.AppFramework
Package Description |
|
Base.TBH
Package Description |
|
Yiyun.Office
Yiyun.Office |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.5.0 | 17,066 | 4/24/2024 |
2.4.1 | 288 | 4/18/2024 |
2.4.0 | 57,387 | 1/30/2023 |
2.3.0 | 14,861 | 10/9/2022 |
2.2.0 | 36,908 | 1/20/2022 |
2.1.0.1 | 12,514 | 10/16/2021 |
2.0.4 | 69,224 | 8/17/2020 |
2.0.3 | 1,262 | 7/28/2020 |
2.0.2 | 15,173 | 3/13/2020 |
2.0.1 | 1,561 | 2/7/2020 |
1.2.1 | 1,392 | 12/23/2019 |
1.2.0 | 1,739 | 2/22/2019 |
1.1.0 | 6,940 | 1/4/2018 |
1.0.0 | 1,750 | 1/1/2018 |
Version 2.3.0 - October 9, 2022
- Added support for EMF files (issue #51).
- The IDs of DocProperties are now always unique (issue #51).
- Changed the default for TargetFrameworks to net48 and net6.0 to better support Visual Studio 2022.
- The NuGet package now also supports .NET Framework 4.0.
Version 2.2.0 - January 20, 2022
- Added support for Visual Studio Code and Visual Studio 2022.
- If a view gets updated it will now be recompiled automatically.
- A copy of the view to a temporary file is now only made in Debug builds.
- The SharpDocx IDE now also supports a document viewer in .NET Core 3.1, .NET 5.0 and .NET 6.0. However, you have to specify the location of the viewer.
- Added .NET 6.0 as a target framework for the samples.
- Updated DocumentFormat.OpenXml to 2.15.0.
- Fixed issue #37 (NullReferenceException).
- Fixed large image overflow bug.
Version 2.1.0 - October 16, 2021
- Added an overload for the Generate method that returns a stream (issue #8 and #9).
- Added support for Source Link.
- Updated samples to .NET Core 3.1.
- Updated DocumentFormat.OpenXml to 2.13.1.
- Fixed issue #34.
- Fixed issue #36.
Version 2.0.4 - August 8, 2020
- Fixed issue #21.
Version 2.0.3 - July 28, 2020
- Fixed issue #18.
Version 2.0.2 - March 14, 2020
- Fixed issue #4 and #14.
Version 2.0.1 - February 7, 2020
- Supports templates in loops and if-statements.
- Templates can be nested (see tutorial).
Version 1.2.1 - December 23, 2019
- Upgraded to DocumentFormat.OpenXml 2.9.1.
- Fixed issue with NuGet dependencies.
Version 1.2.0 - February 22, 2019
- Added support for .NET Standard 2.0.
Version 1.1.0 - January 4, 2018
- Some performance improvements.
- You can now specify a view model when calling Document.Generate.
- Tidied up API.
Version 1.0.0 - January 1, 2018
- Initial version.