Skip to content

mathieumack/OpenXMLSDK.Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Quality Gate Status .NET NuGet package

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

	
    var resourceName = "<Set full template file path here>"; // ex : C:\temp\template.dotx
    var finalFilePath = "<Set saved new document file path here>"; // 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:

	
    var resourceName = "<Set full template file path here>"; // ex : C:\temp\template.dotx
    var finalFilePath = "<Set saved new document file path here>"; // 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]

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages