After very long sleeplessness, and googling, I found a way to load MHT
directly to the Webbrowser, without saving it to disk, at all.
All the images seem to render perfectly, and all comes from a Stream.
To use it, you have to use the Asynchronous Pluggable Protocol.
A sample is here:
http://www.euromind.com/iedelphi/app/namespacehandler.htm
With it, you can make a namespace, say myHTTP://www.mySite.com/ and it
works within your EXE file (available to your EXE ONLY). Then you
navigate to the myHTTP://www.mySite.com/sample.mht and then the
webbrowser uses the Asynchronouse Pluggable Protocol to provide it
with the MHT file. Once the event is fired you can provide the MHT to
it from a Memo, from a Stream which has MHT. Then the webbrowser will
navigate there. It's like a webbserver in your EXE!!! (Just an analogy).
Anyone not able to use it, I could be of some help (ajmalhamza at
gmail.com)
Thanks and keep the good working going.
Thanks for whoever started this dicussion, cause I've learned alot
from here.
Ajmal
London, UK