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.
- Form1.cs (VB: Form1.vb)
- MyUriProvider.cs (VB: MyUriProvider.vb)
(you will be redirected to DevExpress.com to submit your response)