I am working on to creating new custom web browser through Mozilla API.
I have been created initial functionality for browser and its work properly.
Now problem is occurred when work on printing functionality.
I am using nsIWebBrowserPrint (This interface controls the printing of an
embedded Gecko WebBrowser window/document).
I am using one function Print() which is dine below
Print()
{
nsCOMPtr<nsIWebBrowserPrint> print(do_GetInterface(webBrowser));
NS_ENSURE_TRUE(print, FALSE);
if (!mPrintSettings) InitPrintSettings();
nsresult rv;
CPrintProgressDlg* dlg= new CPrintProgressDlg(Parent);
rv =
print->Print(mPrintSettings,static_cast<nsIWebProgressListener*>(dlg->m_Prin
tListener.get()));
NS_ENSURE_SUCCESS(rv, FALSE);
if (dlg->DoModal() != IDOK) {
print->Cancel();
return FALSE;
}
return TRUE;
}
In case, it is not give proper response. According to bold line in given
function will execute. Print dialog should be display and click on ok. Then
print will be execute.
But it s not work.
If you know anything about this problem or related person then please
intimate me by mail.
Thanks
Regards
tim
try asking in the mozilla.dev.apps.seamonkey newsgroup
or the dev-apps-...@lists.mozilla.org list
--
*IMPORTANT*: Sorry folks, but I cannot provide email
help!!!! Emails to me may become public
Notice: This posting is protected under the Free Speech
Laws, which applies everywhere in the FREE world,
except for some strange reason, not to the mozilla.org
newsgroup servers, where your posting may get you banned.
Peter Potamus & His Magic Flying Balloon:
http://melaman2.com/cartoons/singles/mp3/p-potamus.mp3
http://www.toonopedia.com/potamus.htm