BaseURL property

Namespace:  SautinSoft
Assembly:  SautinSoft.HtmlToRtf (in SautinSoft.HtmlToRtf.dll) Version: 4.1.8.13

Syntax

      
 C#  Visual Basic 
public string BaseURL { get; set; }
Public Property BaseURL As String

Remarks

This is very important property when you are converting HTML document in memory. For example, lets convert HTML string to RTF file.

If we've specified:

h.BaseURL = @"d:\my webs";

When the component meets 'src="images/asterisk.jpg"' it will try to open it from: "d:\my webs\images\asterisk.jpg"

Examples

CopyC#
SautinSoft.HtmlToRtf h = new SautinSoft.HtmlToRtf();
h.BaseURL = Server.MapPath("");
CopyVB.NET
Dim h As New SautinSoft.HtmlToRtf()
h.BaseURL = Server.MapPath("")

See Also