https://github.com/mathieumack/openxmlsdk.engine
https://github.com/mathieumack/openxmlsdk.engine
openxml reporting
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mathieumack/openxmlsdk.engine
- Owner: mathieumack
- License: mit
- Created: 2016-07-28T07:46:56.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-12-04T22:19:10.000Z (about 1 year ago)
- Last Synced: 2024-12-13T20:57:56.620Z (about 1 year ago)
- Topics: openxml, reporting
- Language: C#
- Size: 13.8 MB
- Stars: 1
- Watchers: 3
- Forks: 18
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenXMLSDK.Engine
This library let you to create quickly some docx documents, based on the ooxml sdk of Microsoft.
By using the WordManager object, you will be able to geneate quickly your documents.
## Quality and packaging
[](https://sonarcloud.io/summary/new_code?id=mathieumack_OpenXMLSDK.Engine)
[](https://github.com/mathieumack/OpenXMLSDK.Engine/actions/workflows/ci.yml)
[](https://nuget.org/packages/OpenXMLSDK.Engine)
### API
The API of WordManager is very easy to understand and to use.
#### WordManager Open existing template
In order to open a template, call the OpenDocFromTemplate method
```c#
var resourceName = ""; // ex : C:\temp\template.dotx
var finalFilePath = ""; // ex : C:\temp\createdDoc.docx
using (var word = new WordManager())
{
word.OpenDocFromTemplate(resourceName, finalFilePath, true);
word.SaveDoc();
word.CloseDoc();
}
```
#### WordManager Insert text on bookmark
Using the name of the database and the folder on the client device where to store database files:
```c#
var resourceName = ""; // ex : C:\temp\template.dotx
var finalFilePath = ""; // ex : C:\temp\createdDoc.docx
using (var word = new WordManager())
{
word.OpenDocFromTemplate(resourceName, finalFilePath, true);
word.SaveDoc();
word.CloseDoc();
}
```
# Contribute
## How to contribute
If you want to contribute to this project, you can do it in several ways:
- [Submit bugs and feature requests]
- [Review source code changes]
- [Review the documentation and make pull requests for anything from typos to new content]