Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HTML Viewer/Editor?
Message
De
23/08/2001 16:52:34
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00547798
Message ID:
00548320
Vues:
24
Hi, Rick.

Thanks for the reply. But, this won't really help me.

For an idea on what I want, take a look at Outlook or Outlook Express. Create a new message. From within the control that contains the message, you can create HTML content. No external programs necessary, no need for the user to know HTML.

I did get a tip to try the DHTML Edit Control for IE5. I'll give that a shot.

-Bri.


>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform