New to Telerik UI for ASP.NET Core? Download free 30-day trial

ASP.NET Core Editor Import and Export

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Telerik REPL
HtmlHelper
TagHelper
Files:
import_export.cshtml
Import_ExportController.cs
EditorExportController.cs
EditorImportController.cs
Import_Export_TagHelper.cshtml

Description

This demo shows how to import a file in Telerik UI for ASP.NET Core Editor and how to export the Editor content. The import and export features internally rely on the Telerik Document Processing Library.

Telerik Document Processing is a bundle of UI-independent, cross-platform libraries enabling you to process the most commonly used flow, fixed and spreadsheet document formats. The components allow to create documents, import, modify and export them without external dependencies between the following different formats.

To enable the import option in the Editor, add the respective command in the toolbar of he Editor .Tools(tools => tools.Import()). By using the Import attribute, you can configure the Proxy option or set the maximum file size and the allowed extensions of the imported file. Through the Import option, you can import files with the following extensions:

  • DOCX
  • RTF
  • HTML
  • TXT

To export the content of the Editor, include the corresponding command to its toolbar .Tools(tools => tools.ExportAs()) and configure the export settings through the ExportAs attribute. For example, specify the Proxy option, which sets the Action to which the content will be submitted, or specify the FileName attribute to set the name of the downloaded file.

  • DOCX
  • RTF
  • PDF
  • HTML
  • TXT

Additional Apps

This Editor example is part of unique collection of hundreds of ASP.NET Core demos, with which you can see all Telerik ASP.NET Core components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for ASP.NET Core or ThemeBuilder.

Support & Learning Resources

Additional Resources