[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")) |