Displaying relative images in the AxWebBrowser control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I using the axshdocview.AxWebBrowser control to display web pages. THis
works fine via the navigate method for remote pages via a url.

When I use a local file however i.e.
AxWebBrowser.Naviagate("c:\somedir1\somedir2\somepage.htm")

Relative image references are not shown.
i.e. <img border="0" src="../../../../../images/somefile.gif" width="13"
height="13">

Is there anyway to get the relative images to display?

Regards,

Steve.
 
Steve Bugden said:
I using the axshdocview.AxWebBrowser control to display web pages. THis
works fine via the navigate method for remote pages via a url.

When I use a local file however i.e.
AxWebBrowser.Naviagate("c:\somedir1\somedir2\somepage.htm")

Relative image references are not shown.
i.e. <img border="0" src="../../../../../images/somefile.gif" width="13"
height="13">

Is there anyway to get the relative images to display?

Your file's path has only two directory levels but in the relative path you
are walking up five levels.
 
Hello Herfried,

THanks for the reply.

Sorry I should have shown the file location as:
c:\somedir1\somedir2\somedir3\somedir4\somedir5\somepage.htm

Where the image files are located in c:\images\somefile.gif and referenced via
"../../../../../images/somefile.gif"

Sorry for the confusion, I was trying to simplify things abit that isn't my
real structure.

THe files are in the right plave, I know because it the are displayed
correctly in design mode in MS Frontpage.

Interestingly though the relative images are not 'seen' in the preview mode
of Frontpage and in Internet Explorer. Only design mode of FP seems to work.

Best Regards,

Steve.
 
Back
Top