Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HTML Viewer/Editor?
Message
From
23/08/2001 10:58:53
 
 
To
23/08/2001 04:28:03
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00547798
Message ID:
00547981
Views:
15
Brian,

If I'm understanding you correctly, why not just use the Microsoft Web Browser ActiveX control? You can easily drop this on a VFP form. If you're storing your HTML in a table, just STRTOFILE it to a temporary file on the local machine and use the Web Browser control's Navigate() method to display the temporary file, like this:
thisform.oleWebBrowser.Navigate( "file://c:/temp/myHTML.htm")
You can delete the temporary file when you're done with it.

As for editing, you can right-click and 'view source' (it's Internet Explorer, after all), edit the contents in Notepad and save the file. To store the changes in the table you'd just have to FILETOSTR it back into the appropriate field.

I don't have a lot of experience with the Web Browser control, so if you want details on how to manipulate it I can't offer much more than I've already said, but I've played around with it and what I'm describing works. I'm sure you can find lots of references to it elsewhere.

Rick



>Is there a control I can drop on a form which will allow the user to view/edit formatted HTML that is stored in a table (not a file)?
>
>I'm supposed to write a robust email/newsgroup reader, with features comparable to Outlook Express. The only problem left to solve is the formatted message. I finally settled on TX Text Control, but it is driving me batty.
>
>If I can get this working, my next project will require even more HTML features, such as handling in-line and externally-linked graphic files (in other words, a web-page builder).
>
>Is anyone doing anything even remotely similiar to what I'm trying to do? Should I just jump off a cliff right now?
>
>-Bri.
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform