Blogs

News

Email Subscriptions

Mehul Harry's DevExpress Blog

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

     

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

ASPNET_HTML_Editor_Import_And_Export_DevExpress

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
  • MHT - MIME HTML
  • 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:

ASPxHtmlEditor_ToolbarExportButton

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:

ASPxHtmlEditor_ToolbarExport_StandardButton

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: http://www.devexpress.com/Downloads/NET/

Follow MehulHarry on Twitter

Published Apr 28 2011, 02:15 PM by Mehul Harry (DevExpress)
Bookmark and Share

Comments

 

James Zhong said:

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

April 28, 2011 9:56 PM
 

Christopher D. Todd said:

This is pretty awesome!!

April 28, 2011 10:49 PM
 

Damien Bhanji said:

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.

May 6, 2011 8:38 AM
 

Don Wibier said:

Super sweeeet !

May 16, 2011 3:54 AM
 

Jeremy Knowles_1 said:

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...

May 27, 2011 5:42 AM
 

Mehul Harry (DevExpress) said:

Jeremy,

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:

http://codepaste.net/wvari5

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.

Thanks.

May 31, 2011 1:04 AM
 

Jeremy Knowles_1 said:

Mehul

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!

Jeremy

May 31, 2011 11:11 AM
 

Jeremy Knowles said:

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.

June 1, 2011 10:45 AM
 

Mehul Harry (DevExpress) said:

Jeremy,

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

demos.devexpress.com/.../DataBinding.aspx

Thanks.

June 1, 2011 5:14 PM
 

Yitzik Csillag said:

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

June 2, 2011 4:25 PM
 

Mehul Harry (DevExpress) said:

Hi Yitzik,

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

June 2, 2011 5:29 PM
 

Yitzik Csillag said:

Hi Mehul,

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

June 2, 2011 5:58 PM
 

Mehul Harry (DevExpress) said:

Yitzik,

Not sure but I'll look into it.

June 2, 2011 8:12 PM
 

Mehul Harry (DevExpress) said:

@Jeremy,

You might this thread useful for Delphi:

WYSIWYG HTML Editor Component for Delphi - Stack Overflow http://dxpr.es/jp96iD

Thanks, JulianBucknall for the link.

June 3, 2011 6:56 PM
 

Mehul Harry (DevExpress) said:

Yitzik,

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

www.devexpress.com/.../S130819.aspx

Thanks.

June 6, 2011 4:02 PM

About Mehul Harry (DevExpress)

Mehul Harry is an ASP.NET technical evangelist at Developer Express. You can reach him directly at mharry@DevExpress.com. You can also follow him on Twitter: http://twitter.com/mehulharry
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.