Skip to content

DevExpress-Examples/winforms-richedit-export-export-only-body-tag-content-and-specify-location-of-css-styles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Export to HTML - How to Export Only Tag Content and Specify the Location of CSS Styles

This example illustrates how you can use the HtmlExporter class to export the document in HTML format.

The Export method enables you to emit only content encompassed by the specified root tag. The HtmlDocumentExporterOptions object passed as the method's parameter specifies the location of CSS styles - they can be exported to an external file, located within the style tag, or embedded as inline styles in the corresponding HTML tags. The code uses a custom UriProvider to accomplish this task. The IUriProviderService.RegisterProvider method instantiates and registers the UriProvider service.

Files to Review

Documentation