Using webbrowser ctl to save the generated/partial source html page(rendered in javascript)
- From: learnyourabc <learnyourabc@xxxxxxxxx>
- Date: 28 Apr 2007 01:58:48 -0700
Using the IPersistFile Save function will save the html file but the
javascript in the file is not rendered.
http://joongangdaily.joins.com/article/view.asp?aid=2874571
How to do this??I want the html file without the javascript inside.
///////////////////////////////////////////////////////////////////////////////////////
IDispatch *document_dispatch = NULL;
IPersistFile *document = NULL;
hr = _Browser->get_Document(&document_dispatch);
if (SUCCEEDED(hr) && (document_dispatch != NULL)) {
// retrieve document interface
hr = document_dispatch->QueryInterface(IID_IPersistFile,(void
**)&document);
document->Save(L"c:\\htmlpage.html",0);
document->Release();
document_dispatch->Release();
///////////////////////////////////////////////////////////////////////////////////////
Any help would be much appreciated.
.
- Follow-Ups:
- Prev by Date: Re: How to minimize IE
- Next by Date: Re: Using webbrowser ctl to save the generated/partial source html page(rendered in javascript)
- Previous by thread: How to minimize IE
- Next by thread: Re: Using webbrowser ctl to save the generated/partial source html page(rendered in javascript)
- Index(es):
Relevant Pages
|
|