![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
TWebBrowser
李正己
双翼软件创始人
展开
-
TWebBrowser出现 Method pasteHTML not supported by automation object 解决方法
先看下面的源码,在TWebBrowser当前编辑位置插入一个图片,是通过源码的方法插入的。var urlStr : string; ovSelection: OleVariant; ovTextRange: OleVariant; tmpStr : string;begin urlStr := 'http://www.1and1-mail.com/imgv2/原创 2017-04-11 09:37:55 · 1785 阅读 · 0 评论 -
IHTMLElement.getAttribute 出现参数无效的解决方法
调用 IHTMLElement.getAttribute('href') 时,如果被调用的链接是错误的链接,比如 abc,也就是说href后面是个错误的url时,会出现“无效参数”错误对对话框。改进方法 IHTMLElement.getAttribute('href', 2),也就是增加一个参数,参数说明如下0: Default. Performs a property search th原创 2017-03-31 17:48:24 · 3520 阅读 · 0 评论 -
Delphi 从 TWebBrowser中获得当前输入处的链接
var unsubscribeStr : string; ovSelection: OleVariant; innerDom, ovTextRange, nnode: OleVariant;begin ovSelection := Edit.doc.selection; //获得选择对象 ovTextRange := ovSelection.creat原创 2017-03-31 15:25:02 · 762 阅读 · 0 评论 -
Win 10下 Twebbrowser无法通过pasteHTML插入Mailto 链接
var unsubscribeStr : string; ovSelection: OleVariant; innerDom, ovTextRange, nnode: OleVariant;ovSelection := Edit.OleObject.Document.selection; //获得选择对象ovSelection.Clear;ovTextRange := ov原创 2017-03-31 14:25:43 · 1812 阅读 · 0 评论