Brad,

I must still be doing it wrong (probably because I don't really know what
I'm doing), because it's not working.  Here's what I tried:

     HTMLViewer1.LoadPage EditField1.Text, Nil

When the program tries to do that, I get a "NilObjectException" error
message.

What am I doing wrong?

Barry Traver
__________________________________

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!


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.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