On Mar 29, 2006, at 8:47 PM, Barry Traver wrote:

There's probably a simple answer to this question relating to the HTMLViewer. LoadPage works fine if you supply a FolderItem (i.e., an HTML file) and LoadURL works if you supply a URL (i.e., a Web address), but what do you do if you want to load a Web page that you have in a string rather than in a file on disk?

I suppose I can save the string to disk as a FolderItem (i.e., an HTML file) and then use LoadPage to load that file, but is that the only and/or best way to accomplish the objective?

That's one way to do it, but you can also use LoadPage (MyString,MyFolderItem), which will render the given String relative to the given FolderItem. And if you don't need it to be relative to any particular FolderItem, you can pass Nil into the method.

Hope this helps!

--
Brad Rhine
[EMAIL PROTECTED]
http://bradrhine.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to