Welcome Guest Search | Active Topics | Sign In | Register

webbrowser get image Options
lsl
Posted: Monday, February 15, 2016 7:49:55 PM
Rank: Member
Groups: Member

Joined: 1/14/2016
Posts: 28
since many website has Verification image it will different everytime we download it , so how get the picture on current page?..
lsl
Posted: Tuesday, February 16, 2016 3:16:23 AM
Rank: Member
Groups: Member

Joined: 1/14/2016
Posts: 28
in ie:
private Image GetWebImage(WebBrowser WebCtl, HtmlElement ImgeTag)
{
HTMLDocument doc = (HTMLDocument)WebCtl.Document.DomDocument;
HTMLBody body = (HTMLBody)doc.body;
IHTMLControlRange rang = (IHTMLControlRange)body.createControlRange();
IHTMLControlElement Img = (IHTMLControlElement)ImgeTag.DomElement;

Image oldImage = Clipboard.GetImage();
rang.add(Img);
rang.execCommand("Copy", false, null);
Image numImage = Clipboard.GetImage();
try
{
Clipboard.SetImage(oldImage);
}
catch
{
}

return numImage;
}

eo_support
Posted: Tuesday, February 16, 2016 5:57:39 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,201
Hi,

We do not have any direct support to copy the image to clipboard. You can try to use EvalScript to perform similar action and see if it works. If the JavaScript code works in Chrome browser, then it should work for EO.WebBrowser.

Thanks!
lsl
Posted: Tuesday, February 16, 2016 7:33:12 PM
Rank: Member
Groups: Member

Joined: 1/14/2016
Posts: 28
what a pity , in my search , only chrome 42 can do this, our product is chrome 41.., i hope we can update to the latest chrome kernel
eo_support
Posted: Tuesday, February 16, 2016 10:34:38 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,201
Hi,

We are in the process of updating Chrome version. Our next release will be based on a newer Chrome engine.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.