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:
00597494
Views:
20
>>>>>>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.

I´m completely lost here. Please could you help me. I know how to navigate to a page, but how to "locate the desired graphic in the page, get the reference to the graphic in the HTML, and suck it down from the reference"?
José Augusto Cavalcanti
Global Connection
jose.cavalcanti@globalconnection.com.br
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform