Re: How to remove the page header and footer when printing use Internet Explorer



Thanks for response.

I browsed the source code, followings are related:

1. HandlePageSetup in extui.cpp:
This function show the PageSetup dialog, but only the page margins
can be set.

2. ID_FILE_PRINT command handler:
_pBrowser->ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER,
NULL, NULL);
This calls into the Browser object, and no more source code to
track.

It seems like the ExecWB does the actual printing work.
.