HTMLViewer.LoadPage error on 10.6.8

I have an HTMLViewer to show images whose URLs are stored in a DB.

Dim f as New FolderItem
HTMLViewer.LoadPage("<my html goes here>",f)

It works fine on my 10.9.5 machine but on 10.6.8 it’s throwing “Exception Message: The BaseFile parameter to LoadPage must be an existing file, not folder”

(I’m building with 2013r3.3)

Any ideas?

Why do you write “Dim f as New FolderItem”?

Simply pass nil for the folderitem if you don’t have one.

Because I’m a newbie blindly following the documentation!

I’ll give that a try. Thank you.

That works fine Christian. Thank you.