XHtmlOptions ForMSHtml Property. An object that provides access to only the HTML options supported by the MSHTML engine. ABCpdf .NET PDF Library.

ABCpdf .net

 
   

 

Type Default Value Read Only Description
[C#] IHtmlMSHtmlOptions

[Visual Basic]
IHtmlMSHtmlOptions
n/a Yes An object that provides access to only the HTML options supported by the MSHTML engine.

 

   

Notes
 

The HTML options supported by the MSHTML engine.

Supported methods

Supported properties

   

Example
 

[C#]
Doc doc = new Doc();
doc.HtmlOptions.Engine = EngineType.MSHtml;
doc.HtmlOptions.ForMSHtml.AddLinks = true;

// You can store a reference to the filter to reduce code repetition
IHtmlMSHtmlOptions options = doc.HtmlOptions.ForMSHtml;

options.UseActiveX = true;
options.AutoTruncate = true;

doc.AddImageUrl("http://www.websupergoo.com");
doc.Save(Server.MapPath("wsg.pdf"));

[Visual Basic]
Dim theDoc As Doc = New Doc()
theDoc.HtmlOptions.Engine = EngineType.MSHtml
theDoc.HtmlOptions.ForMSHtml.AddLinks = True

' You can store a reference to the filter to reduce code repetition
Dim theOptions As IHtmlMSHtmlOptions = theDoc.HtmlOptions.ForMSHtml

theOptions.UseActiveX = True
theOptions.AutoTruncate = True

theDoc.AddImageUrl("http://www.websupergoo.com")
theDoc.Save(Server.MapPath("wsg.pdf"))