ASP.NET HTML Editor (WebForms & MVC) - Import and Export Multiple Formats Like RTF, Docx, and more! (available now in v2011.1)

28 April 2011

Check out the new import and export feature of our ASP.NET HTML Editor that's available now in the DXperience v2011.1 release:


WebForms and MVC

The new Import and Export feature will be available for both the ASP.NET WebForms and MVC Platforms of our ASP.NET HTML Editor!

Import and Export To Multiple Formats

You can import from and export to several different formats. Here's the full list:

  • RTF - Rich Text
  • DOC/DOCX - Office Open XML
  • ODF - Open Document
  • TXT - Plain Text
  • PDF - Portable Document* - Available for export only

Toolbar Button For Export

To make it easier for you and your end-users, we've also added a new export button to our ASP.NET HtmlEditor. The button allows you to save the document in a number of different formats:


You can also customize the menu's content of available export formats. This makes it easier to limit or allow certain formats.

The new export button is a standard toolbar item within the ASPxHtmlEditor:


Rich Server and Client-side API

The Import and Export feature also makes your life as a developer easier by giving you the choice between server and client-side API. For example, you'll be able to:

  • Load from the file or stream with options (CSS and images folder, external file/inline stylesheets)
  • Save to stream or response
  • Use a client-side command similar to the toolbar button

What do you think about the ASP.NET HTML Editor's Import and Export feature? Drop me a line below, thanks!

DXperience? What's That?

DXperience is the .NET developer's secret weapon. Get full access to a complete suite of professional components that let you instantly drop in new features, designer styles and fast performance for your applications. Try a fully-functional version of DXperience for free now:

Follow MehulHarry on Twitter

15 comment(s)
James Zhong

Thank you for supporting .docx format by ASP.NET HTML Editor (WebForms & MVC) 2011.1 !

28 April, 2011
Christopher Todd

This is pretty awesome!!

28 April, 2011
Damien Bhanji

Over the last 2 years we have replaced all other controls with DevExpress ones in our application, but there is still one that persists - the one that turns HTML into PDF documents. I'm hoping that this feature will finally allow us to do away with that control too, it certainly looks very promising.

6 May, 2011
Robbert Speet

Super sweeeet !

16 May, 2011
Jeremy Knowles_1

Very happy with this, thank you!

Can you give a clue as to how the export works programatically? I see myEditor.Export(DevExpress.Web.ASPxHtmlEditor.HtmlEditorExportFormat.Rtf)

but no idea and no docs...

27 May, 2011
Mehul Harry (DevExpress)


This is the code from the demo. If you have 2011.1 beta then you also have access to the demo. But here's the code to import an RTF:

For Export, it's done via the toolbar button.

You'll need 2011.1 for this so also check out your ASPxHtmlEditor demos with the 2011.1 installation.


31 May, 2011
Jeremy Knowles_1


Thanks, but I actually need to export by code, the reason being I am using this as a nice editor for the web-user, but it feeds a backoffice system which has Delphi win32 applications that also have to access the data, and I can't find something suitable to show the saved data, unless you can suggest something.

So, what I wanted to do was save it from the ASPxHtmlEditor to our database in rtf format, so I can use one of the common rtfmemo editors in Delphi.

So, it's not the user that wants to export it, it is me!


31 May, 2011
Jeremy Knowles

I see you can export via code, you meant just in the demo that's how it was done!

What is the simplest way to get data in/out of a database, rather than using the .html property? Don't really want to do it via a file if I can avoid it.

1 June, 2011
Mehul Harry (DevExpress)


Yes, I meant about the code in the demo. As for databinding, check out the demo and code here:


1 June, 2011
Yitzik Csillag

Is this feature allows you to convert to PDF/A?

2 June, 2011
Mehul Harry (DevExpress)

Hi Yitzik,

Yes, you'll be able to export the ASPxHtmlEditor's contents to PDF format! :)

2 June, 2011
Yitzik Csillag

Hi Mehul,

I was asking about PDF/A (the ISO standard for Archived PDFs).

2 June, 2011
Mehul Harry (DevExpress)


Not sure but I'll look into it.

2 June, 2011
Mehul Harry (DevExpress)


You might this thread useful for Delphi:

WYSIWYG HTML Editor Component for Delphi - Stack Overflow

Thanks, JulianBucknall for the link.

3 June, 2011
Mehul Harry (DevExpress)


The ASPxHtmlEditor will not export to PDF/A. I recommend tracking this suggestion to get updates about it's status:


6 June, 2011

Please login or register to post comments.