:warning: This repository has moved to https://github.com/groupdocs-editor/GroupDocs.Editor-for-.NET/tree/master/Demos/MVC
GroupDocs.Editor for .NET is a library that allows you to edit DOCX, ODT, XLS and other supported formats in form of HTML and save it back to the original format. With GroupDocs.Editor you can easily edit documents on the web with your favorite WYSIWYG editor without external dependencies.
This web application demonstrates the powerful capabilities of GroupDocs.Editor with a built-in WYSIWYG document editor and can be used as a standalone application or can be easily integrated into your project.
Note: without a license application will run in trial mode, purchase GroupDocs.Editor for .NET license or request GroupDocs.Editor for .NET temporary license.
Family | Formats |
---|---|
Microsoft Word | DOC , DOCM , DOCX , DOT , DOTM , DOTX |
Microsoft Excel | XLS , XLSB , XLSM , XLSX , XLT , XLTM , XLTX |
OpenDocument Formats | ODT , ODP , ODS , OTT |
Plain Text File | TXT |
Comma-Separated Values | CSV |
HyperText Markup Language | HTML , MHT , MHTML , SVG |
Extensible Markup Language | XML ,XML , XPS |
You can run this sample by one of following methods
Download source code from github or clone this repository.
git clone https://github.com/groupdocs-Editor/GroupDocs.Editor-for-.NET-MVC
Open solution in the VisualStudio.
Update common parameters in web.config
and example related properties in the configuration.yml
to meet your requirements.
Open http://localhost:8080/Editor in your favorite browser
Use docker image.
mkdir DocumentSamples
mkdir Licenses
docker run -p 8080:8080 --env application.hostAddress=localhost -v `pwd`/DocumentSamples:/home/groupdocs/app/DocumentSamples -v `pwd`/Licenses:/home/groupdocs/app/Licenses groupdocs/Editor
## Open http://localhost:8080/Editor in your favorite browser.
For all methods above you can adjust settings in configuration.yml
. By default in this sample will lookup for license file in ./Licenses
folder, so you can simply put your license file in that folder or specify relative/absolute path by setting licensePath
value in configuration.yml
.
Option | Type | Default value | Description |
---|---|---|---|
filesDirectory |
String | DocumentSamples |
Files directory path. Indicates where uploaded and predefined files are stored. It can be absolute or relative path |
fontsDirectory |
String | Path to custom fonts directory. | |
defaultDocument |
String | Absolute path to default document that will be loaded automatically. | |
createNewFile |
String | Enable / disable new document creation. |
BaseURL is fetched from address bar however you can set custom baseURL by adding forRoot parameter at app.module.ts
Example:
ViewerModule.forRoot("http://localhost:8080")
The MIT License (MIT).
Please have a look at the LICENSE.md for more details
Home | Product Page | Documentation | Demo | API Reference | Examples | Blog | Search | Free Support | Temporary License