R
RedLars
The application in question uses .NET 1.1 (cannot use 2.0 atm). An
html page is dynamically generate within the application and is
displayed using AxSHDocVw.AxWebBrowser.
The problem with this solution is that the web page displayed inside
AxSHDocVw.AxWebBrowser UI component doesn't show images referered to
in the html page, it only shows an empty box. Tried using Process
Monitor to see what path's that the application tired to use but no
luck. Saving the html to file is not an option atm. Tried saving the
image in question in application folder, also tried setting src="c:
\logo.ico" without any luck.
Here is a small code;
object empty = System.Reflection.Missing.Value;
axWebBrowser1.Navigate("about:blank", ref empty, ref empty, ref empty,
ref empty);
string strHTML= "<html><head><META http-equiv=\"Content-Type\" content=
\"text/html; charset=utf-8\"><title>System Report</title></
head><body><img class=\"logo\" alt=\"logo\" src=\"logo.ico\"><h1>TEST</
h1></body></html>";
mshtml.IHTMLDocument2 BrowserDoc = axWebBrowser1.Document as
mshtml.IHTMLDocument2;
BrowserDoc.clear();
BrowserDoc.write(strHTML);
BrowserDoc.close();
Appreciate any input.
html page is dynamically generate within the application and is
displayed using AxSHDocVw.AxWebBrowser.
The problem with this solution is that the web page displayed inside
AxSHDocVw.AxWebBrowser UI component doesn't show images referered to
in the html page, it only shows an empty box. Tried using Process
Monitor to see what path's that the application tired to use but no
luck. Saving the html to file is not an option atm. Tried saving the
image in question in application folder, also tried setting src="c:
\logo.ico" without any luck.
Here is a small code;
object empty = System.Reflection.Missing.Value;
axWebBrowser1.Navigate("about:blank", ref empty, ref empty, ref empty,
ref empty);
string strHTML= "<html><head><META http-equiv=\"Content-Type\" content=
\"text/html; charset=utf-8\"><title>System Report</title></
head><body><img class=\"logo\" alt=\"logo\" src=\"logo.ico\"><h1>TEST</
h1></body></html>";
mshtml.IHTMLDocument2 BrowserDoc = axWebBrowser1.Document as
mshtml.IHTMLDocument2;
BrowserDoc.clear();
BrowserDoc.write(strHTML);
BrowserDoc.close();
Appreciate any input.