Hi all,
I am embedding Mozilla in my program. Everything has been quite OK since
the beginning, but I have a problem now, trying to print the pages. Here is
the kind of thing I am doing :
// Creation of the WebBrowser
nsresult rv;
nsCOMPtr<nsIWebBrowser>m_nspPrinter=do_CreateInstance(NS_WEBBROWSER_CONTRACT
ID, &rv);
// Request the nsIWebBrowserPrint interface
nsCOMPtr<nsIWebBrowserPrint>
nspWebBrowserPrint(do_QueryInterface(m_nspPrinter, &rv));
At this point, rv==0x80004002 (NS_NOINTERFACE), though this is very similar
to
http://lxr.mozilla.org/seamonkey/source/embedding/browser/activex/src/control/MozillaBrowser.cpp#1461
So the problem here is that the WebBrowserPrint interface is somehow not
implemented by my WebBrowser instance, though it should, as far as the
documentation I have read is concerned :
http://www.mozilla.org/projects/embedding/faq.html
Does anybody have an idea about this ?
Thanks in advance.
Mathieu CARTOIXA
Nota : I am working with Mozilla 1.3.1 on Windows NT 4.0 SP6a.
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding