Hi, all!
I'm trying to print from an embedded browser. The code looks like that:
nsCOMPtr<nsIWebBrowserPrint> print(do_GetInterface(FBrowser));
if(!print)
return -1;
...
res=print->Print(nsnull,nsnull);
When I call it for the first time - nothing happens. When I call it once
again - Print() returns an error -2147221231.
I tried to call PrintPreview() instead of Print(). When I call it twice
- everything starts to work just perfectly.
I've run out of ideas. Please advise.
Thanks in advance,
Alexander
