Hi all,
 
 I met a problem to show images when using embeded Mozilla. I used dom API to 
set a page's content, but when the content contains images, they will not 
display well.  Here is my sample code:
 
    nsCOMPtr<nsIDOMDocument> domDoc;
    aWebNav->GetDocument(getter_AddRefs(domDoc));
    nsCOMPtr<nsIDOMHTMLDocument>     domHtmlDoc(do_QueryInterface(domDoc)); 
     domHtmlDoc->Open();
 
     nsEmbedString unicodeContent;
     ConvertUtf8ToUtf16(nsEmbedCString(htmlContent), unicodeContent);
     domHtmlDoc->Write(unicodeContent);    
     domHtmlDoc->Close();
 
 The result is that , images just show as icons and when you right click and 
click "show image" , they will be shown in a new browser.  Does anyone know how 
to fix it? 
 
 BTW, it works well for Mozilla which is build by myself (without GRE), but 
failed with Mozilla installed by .exe file (whose GRE is seperated).
 
 Any hints will be helpful! Thanks!
 
 Michael
 
 __________________________________________________
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to