Download Remote CSS

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

Syntax

      
 C#  Visual Basic 
public bool PreserveHttpCss { get; set; }
Public Property PreserveHttpCss As Boolean

Remarks

By default the PreserveHttpCss is set to True, it means that the component will try to download *.css files which linked to the Internet, for example:

<hyperlink href="http://mysite.com/css/main.css" rel="stylesheet" type="text/css">

To switch off the downloading CSS from Internet set this property to False.
Also if you have any issues with remote CSS, the property CreateTraceFile will be helpful.



Examples

CopyC#
SautinSoft.HtmlToRtf h = new SautinSoft.HtmlToRtf();
h.PreserveHttpCss = false;
CopyVB.NET
Dim h As New SautinSoft.HtmlToRtf()
h.PreserveHttpCss = False

See Also