HTMLViewer.LoadPage ( Source As String, RelativeTo As FolderItem )
“On Windows, temporary files are created beside the passed RelativeTo FolderItem.”
I can’t seem to find any reference to this file, is the filename of the temporary file returned somewhere or do I need to fish around for it to delete it at a later time?
Create a “global” temp dir using GetTemporaryItem that will contain all your content
Then put your relative to root page + css, images etc in that temporary dir
And remove all the contents of that temporary dir when your app quits
But all the generated pages would then reference the temp dir. So I would have to copy my entire html content (images, css etc.) into the temp dir every time the program is launched.
The alternative is simply to generate the HTML page in a folder where you have all your HTML paraphernalia : images and stuff. Usually nicely tucked in a subfolder of Specialfolder.ApplicationData. Then do a loadURL.
I would find that a whole lot more logical. Then you don’t have to worry about src for images and path for anything else.