New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Implements the export proxy for converting RadEditor content and RadFlow documents to various formats using the DocumentsFlow library.

Definition

Constructors

C#
public DplExportProxy()

Methods

Converts HTML content from RadEditor to a RadFlow document using the HTML format provider.

C#
public virtual object ConvertHtmlToRadFlowDocument(string editorContent)
Parameters:editorContentstring

The HTML content to convert.

Returns:

object

The RadFlow document object.

Implements: IDplExportProxy.ConvertHtmlToRadFlowDocument(string)

Exports a RadFlow document to the DOCX format.

C#
public virtual string ExportToDocx(object radFlowDocument)
Parameters:radFlowDocumentobject

The RadFlow document to export.

Returns:

string

A string containing the DOCX file data.

Implements: IDplExportProxy.ExportToDocx(object)

Exports a RadFlow document to the RTF format.

C#
public virtual string ExportToRtf(object radFlowDocument)
Parameters:radFlowDocumentobject

The RadFlow document to export.

Returns:

string

A string containing the RTF file data.

Implements: IDplExportProxy.ExportToRtf(object)

Sets the default font and font size for the specified RadFlow document.

C#
public virtual void SetDefaultFont(object radFlowDocument, string defaultFontName, decimal defaultFontSizeInPoints)
Parameters:radFlowDocumentobject

The RadFlow document to modify.

defaultFontNamestring

The name of the default font.

defaultFontSizeInPointsdecimal

The default font size, in points.

Implements: IDplExportProxy.SetDefaultFont(object, string, decimal)

Sets the page header in the specified RadFlow document.

C#
public virtual void SetPageHeader(object radFlowDocument, string pageHeader, decimal headerFontSizeInPoints)
Parameters:radFlowDocumentobject

The RadFlow document to modify.

pageHeaderstring

The header text to set.

headerFontSizeInPointsdecimal

The font size for the header, in points.

Implements: IDplExportProxy.SetPageHeader(object, string, decimal)

Validates HTML content before export, converting relative image paths to absolute paths.

C#
public virtual string ValidateHtmlForExport(string html)
Parameters:htmlstring

The HTML content to validate.

Returns:

string

The validated HTML content.

Implements: IDplExportProxy.ValidateHtmlForExport(string)