All Projects → egonl → Sharpdocx

egonl / Sharpdocx

Licence: mit
C# based template engine for generating Word documents

Projects that are alternatives of or similar to Sharpdocx

com.elovirta.ooxml
DITA to Word plug-in
Stars: ✭ 19 (-81%)
Mutual labels:  word, docx
Unioffice
Pure go library for creating and processing Office Word (.docx), Excel (.xlsx) and Powerpoint (.pptx) documents
Stars: ✭ 3,111 (+3011%)
Mutual labels:  word, docx
docxmustache
laravel 8.x docx template manipulation class, based on mustache templating language
Stars: ✭ 34 (-66%)
Mutual labels:  word, docx
Documentserver
ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
Stars: ✭ 2,335 (+2235%)
Mutual labels:  word, docx
Desktopeditors
An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
Stars: ✭ 1,008 (+908%)
Mutual labels:  word, docx
officeexport-java
三行代码导出自定义样式word
Stars: ✭ 68 (-32%)
Mutual labels:  word, docx
GemBox.Document.Examples
Read, write, convert and print document files (DOCX, DOC, PDF, HTML, XPS, RTF, and TXT) in a simple and efficient way.
Stars: ✭ 53 (-47%)
Mutual labels:  word, docx
Net Core Docx Html To Pdf Converter
.NET Core library to create custom reports based on Word docx or HTML documents and convert to PDF
Stars: ✭ 133 (+33%)
Mutual labels:  word, docx
Docconv
Converts PDF, DOC, DOCX, XML, HTML, RTF, etc to plain text
Stars: ✭ 735 (+635%)
Mutual labels:  word, docx
Fiduswriter
Fidus Writer is an online collaborative editor for academics.
Stars: ✭ 405 (+305%)
Mutual labels:  word, docx
Poi Tl
Generate awesome word(docx) with template
Stars: ✭ 2,306 (+2206%)
Mutual labels:  word, docx
Superfileview
基于腾讯浏览服务Tbs,使用X5Webkit内核,实现文件的展示功能,支持多种文件格式
Stars: ✭ 1,115 (+1015%)
Mutual labels:  word, docx
Phpstamp
The XSL-way templating library for MS Office Word DOCX documents.
Stars: ✭ 150 (+50%)
Mutual labels:  word, docx
wordroller
Free Microsoft Word document (aka .docx) processing library for .Net
Stars: ✭ 17 (-83%)
Mutual labels:  word, docx
Docxtemplater
Generate docx pptx and xlsx (Microsoft Word, Powerpoint, Excel documents) from templates, from Node.js, the Browser and the command line / Demo: https://www.docxtemplater.com/demo
Stars: ✭ 1,990 (+1890%)
Mutual labels:  word, docx
markdown-to-document
A Markdown CLI to easily generate HTML documents from Markdown files
Stars: ✭ 28 (-72%)
Mutual labels:  word, docx
Docx
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
Stars: ✭ 2,150 (+2050%)
Mutual labels:  word, docx
Etherpad Lite
Etherpad: A modern really-real-time collaborative document editor.
Stars: ✭ 11,937 (+11837%)
Mutual labels:  word, docx
Docx
a ruby library/gem for interacting with .docx files
Stars: ✭ 288 (+188%)
Mutual labels:  word, docx
Documentbuilder
ONLYOFFICE Document Builder is powerful text, spreadsheet, presentation and PDF generating tool
Stars: ✭ 61 (-39%)
Mutual labels:  word, docx

SharpDocx

NuGet MIT AppVeyor

C# based template engine for generating Word documents

Generating documents with SharpDocx is a two step process. First you create a view in Word. A view is a Word document which also contains C# code. Code can be inserted anywhere, e.g. <%= DateTime.Now %> would insert the current date and time.

The next step is to create documents based on this view. This requires two lines of code:

var document = DocumentFactory.Create("view.cs.docx");
document.Generate("output.docx");

Out of the box SharpDocx supports inserting text, tables, images and more. See the Tutorial sample (here's the view and the controller, and here's the generated document).

If you want, you can specify a view model to be used in your view. Then you could write things like <% foreach (var item in Model.MyList) { %>. See the Model sample.

If you want to do something that's not supported by SharpDocx, you can do so by creating your own document subclass. See the Inheritance example.

SharpDocx supports .NET Framework 3.5/4.5 and .NET Standard 2.0.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].