Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capturing the HTML from an ole browser into a .PNG
Message
 
To
31/03/2010 00:31:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01458160
Message ID:
01458182
Views:
60
>>Somewhere I saw someone had a way to capture the HTML created in an ole Browser control and create a .png or .JPG from it. Not sure where to start or what the search term would be so I am asking.
>
>Are you talking about the actual HTML code or the complete web page to be captured?

Sorry, didn't include the details.
I have a form with 10 to 20 edit boxes the user can edit as desired. This form is then converted to HTML and uploaded to a web server to be shown as a web page.
I now want to allow the user to edit HTML within the edit box. For that I tried using the ole Browser control but can't get it to work on my main form. Sergey suggested it would be very hard to get such a thing to work with such a complex form and with many ole Browser controls on the same form and after spending many hours banging my head against the wall I agree. I can easily get a single ole Browser control to work in a form so I now want to do that and capture the HTML from the ole Browser control as an image that I can then display in place of the edit box/ole Browser on the main form. The user would then see the main form as it would look on the web.

What I am looking for is a way to capture the contents of the ole Browser control HTML as an image. I have code to capture a rectangle on the screen and save it as a .png, .jpg etc. but I know I saw somewhere a demo of doing that where the HTML itself was rendered as an image file. That would work much better in that I would not have to worry about the scroll bar or if the entire image was visible in the browser control.

Thanks.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform