Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capturing the HTML from an ole browser into a .PNG
Message
From
01/04/2010 08:31:40
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
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:
01458335
Views:
42
>I haven't tried it but I'm not sure it would work with 10 - 20 instances of the ole Browser on one form. I guess I could try it.

Why 10 or 20? One, to show the html created in "This form is then converted to HTML".


>>Why can't you use Web Browser control on the main form to display HTML?
>>
>>>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform