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.

Start Free Trial
GroupDocs.Editor Cloud SDK for .NET

GroupDocs.Editor Cloud SDK for .NET

 
 

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.

Previous Next
 

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));
 

Support and Learning Resources