Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Taking a picture from a page
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00597390
Message ID:
00597459
Views:
15
>>>>>Hi, is it possible to take a picture from a homepage via OLE Automation?
>>>>>
>>>>
>>>>Absolutely; you can use IE's automation server InternetExplorer.Application directly, or use the Web Browser ActiveX control that comes with VFP (which is a wrapper around InternetExplorer.Application that permits you to embed a browser in a VFP form) quite easily - there are classes for using the Web Browser control in VFP's Foundation classes (in the FFC subfolder of VFP.)
>>>
>>>Do you know how can I do?
>>
>>Do I have code already written - no; however, there are native properties and methods of InternetExplorer.Application that will provide you with the content of a page as HTML, or you can use a tool like George Tasker's Obj2BMP to convert a VFP Form or control to a .BMP file, which would automagically work with the Web Browser control. The object model for InternetExplorer.Application is provided in the MSDN Library, which can be accessed on-line at http://msdn.microsoft.com; George's Obj2BMP is available for download on UT in the Files section.
>
>I think that I didn´t explained well my problem. I need to extract an image from a given homepage (like right clicking in a Image and saving as a bitmap file).
>

Yep, and as I said, you can grab an image into a BMP using George's Obj2BMP, or locate the desired graphic in the page, get the reference to the graphic in the HTML, and suck it down from the reference.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform