all groups > dotnet windows forms > june 2005 >
You're in the

dotnet windows forms

group:

Displaying relative images in the AxWebBrowser control


Re: Displaying relative images in the AxWebBrowser control Herfried K. Wagner [MVP]
6/21/2005 12:00:00 AM
dotnet windows forms:
"Steve Bugden" <SteveBugden@discussions.microsoft.com> schrieb:
[quoted text, click to view]

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

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Displaying relative images in the AxWebBrowser control Steve Bugden
6/21/2005 5:21:03 AM
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,

Re: Displaying relative images in the AxWebBrowser control Steve Bugden
6/21/2005 11:03:02 AM
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.




[quoted text, click to view]
AddThis Social Bookmark Button