It's target path of HTML document base location.

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

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. Specify a BaseURL that is it will convert all relative URLs on that page to absolute URLs.

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