C# .NET Documents Editor SDK

Cloud REST API to edit Word processing documents, Excel Spreadsheets & Presentations. Open document in WYSIWYG editor, edit and save back to original format.

  • GroupDocs.Editor for cURL
  • GroupDocs.Editor for Java
  • GroupDocs.Editor for PHP
  • GroupDocs.Editor for Python
  • GroupDocs.Editor for Ruby
  • GroupDocs.Editor for Node.js
  • GroupDocs.Editor for Android
Start Free Trial

GroupDocs.Editor Cloud SDK for .NET allows developers to easily perform document editing functionalities within any type of .NET based application by integrating it with GroupDocs.Editor Cloud REST API. The .NET editor SDK supports editing all popular industry standard document types without needing to install Microsoft Office or Open Office on the system. Simply upload the supported document (Microsoft Word, Excel spreadsheets, PowerPoint, TXT, HTML, XML) file formats in any third-party front-end WYSIWYG HTML editor of your choice using GroupDocs.Editor Cloud API, perform editing and convert it back to its original file format.

Using document editing SDK – manipulate word processing documents as a whole or page by page. Manage font extraction operation to offer the same layout and appearance of the document after editing. It supports defining the index of currently edited worksheet while editing the multi-tabbed Excel spreadsheets. Developers can also fix any issues within URLs, formatting options, document structure or recognition of email addresses within XML files.

Frequently Asked Questions

I want to create my own .NET application to edit documents?

Check out GroupDocs.Editor Cloud SDK for .NET at GitHub if you are looking for the source code to annotate file in the Cloud.

Can I try GroupDocs.Editor REST APIs on .NET for free?

You can try GroupDocs.Editor Low-Code .NET APIs without any limitations.

I do not want to upload my confidential files anywhere for editing? What are my options?

GroupDocs.Editor Cloud is also available as Docker image which can be used to self-host the service. Or you may build your own .NET services using GroupDocs.Editor High-code APIs which currently drive our REST APIs.

Advanced Document Editor REST API Features

Integrates easily within any WYSIWYG editor

Edit Word documents as a whole or define pages range

Multi-tabbed spreadsheet editing is supported

Optimized memory usage for large CSV or TSV files

Extract document information (type, size, page count etc)

Cloud REST API to be used with any language or platform

Working with WordProcessing Documents - C#

//Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).
var configuration = new Configuration(MyAppSid, MyAppKey);

// Create necessary API instances
var editApi = new EditApi(configuration );
var fileApi = new FileApi(configuration );

// The document already uploaded into the storage.
// Load it into editable state
var loadOptions = new WordProcessingLoadOptions
{
    FileInfo = new FileInfo
    {
        FilePath = "WordProcessing/password-protected.docx",
        Password = "password"
    },
    OutputPath = "output"
};
var loadResult = editApi.Load(new LoadRequest(loadOptions));

// Download html document
var stream = fileApi.DownloadFile(new DownloadFileRequest(loadResult.HtmlPath));
var htmlString = new StreamReader(stream, Encoding.UTF8).ReadToEnd();

// Edit something...
htmlString = htmlString.Replace("Sample test text", "Hello world");

// Upload html back to storage
fileApi.UploadFile(new UploadFileRequest(loadResult.HtmlPath,
    new MemoryStream(Encoding.UTF8.GetBytes(htmlString))));

// Save html back to docx
var saveOptions = new WordProcessingSaveOptions
{
    FileInfo = loadOptions.FileInfo,
    OutputPath = "output/edited.docx",
    HtmlPath = loadResult.HtmlPath,
    ResourcesPath = loadResult.ResourcesPath
};
var saveResult = editApi.Save(new SaveRequest(saveOptions));

GroupDocs.Editor offers document viewing APIs for other popular development environments

  English
4b2bd44