display HTML file as an embedded resource

  • Thread starter Thread starter dragan
  • Start date Start date
D

dragan

Hello,

I want to display HTML file as an embedded resource,
(read it into MS webBrowser control.)

I know how to do it from file, but...

Also, I have pictures in that HTML file.

Can anyone help me, please?
 
so when you say 'do it from file', are you loading the file directly by
file path, or using a webserver to host the file, so it's requested using
'http://....'? What you have to do is check the img references inside the
HTML, and make sure the src paths are relative to the doc location.

so if your doc says

<img src="images/1.gif">

then the 1.gif must go into a folder called images underneath the directory
the doc itself is in. The web control will make new requests for each
image, etc. inside the doc and render them appropriately....
 
Thanx Craig,

I am loading HTML directly from file path.
It is not a web app, it is win app.
I had to display a lot of important text with pics,
so I decided to do it with webBrowser control.

But, my problem is that I dont want users to be
able to copy text in that file or edit it.
(already forbiden right or left click on control).

When I install my program user can go to
install directory and find all HTML files
and then edit them.

So I want to load HTML as an embedded
resource, read it into stream and ...

I know how to do this with text files
( rtf ) but HTML...?

Sorry for bad english.

Thanx, draganc
 
Back
Top