Could anyone tell me how to save the loaded page in c++ XPCOM component, to have the effect like we use File->Save and choose "Web page, Complete". That is besides html file, there is a directory created to hold pics etc? 
 
Can I use nsIWebBrowserPersist to do such "save as"?
 
And how to get a reference to nsIWebBrowserPersist? Should I do the following:
nsCOMPtr<nsIWebBrowserPersist> persist =
           do_CreateInstance("@mozilla.org/embedding/browser/nsWebBrowserPersist;1", &rv);
 
then call persist->SaveDocument?
 
I tried to do it in the above, but it fails. So any suggetion is welcome.
 
Thank you very much guys.
 
Nanjun


Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online

Reply via email to