Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Set default path for loading image when using IHTMLDocument2::write

49 views
Skip to first unread message

Si

unread,
Feb 19, 2009, 6:53:27 AM2/19/09
to
Hi,

I load html to a web control, by directly using
IHTMLDocument2::write.

if the html contains the following:
<img src="test.jpg">

Than it appears as a "red x", because the web browser cant find the
file.
This is expected because I dont use "Navigate" which contains a path,
so no path is available.

I can solve this problem by adding a full path to each image, e,g:
<img src="c:\temp\test.jpg">
but it means changing the html, and I want to avoid that.

Is there a way to specify the default folder (in this case "c:
\temp'") of the document,
so the web browser will use it, and the original html will work.

Thanks for your help,
Regards,
Si.


Igor Tandetnik

unread,
Feb 19, 2009, 7:51:33 AM2/19/09
to
"Si" <bluet...@walla.co.il> wrote in message
news:28086b1e-c319-47f5...@v15g2000yqn.googlegroups.com

> I load html to a web control, by directly using
> IHTMLDocument2::write.
>
> if the html contains the following:
> <img src="test.jpg">
>
> Than it appears as a "red x"

http://groups.google.com/group/microsoft.public.inetsdk.programming.html_objmodel/browse_frm/thread/fa57f1eebf880388

--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


0 new messages