Today's quickie - IE print and print preview
For those who host IE in their own .NET applications (as I do quite often), here's a tip on how to tell IE to print the currently navigated page:
object empty = null;
this.axWebBrowser1.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_PROMPTUSER, ref empty, ref empty);
There are a bundle of other options in that first OLECMDID enumeration. Enjoy!