I can't find any decent documentation on the Microsoft Web Browser in C#.
Currently I can print the HTML page I am looking at in portrait format but I
want to change this to landscape.
Does anyone know how to do this?
My current (short but simple) code is:
private void printButton_Cli ck(object sender, System.EventArg s e) {
object nullObject = null;
this.webBrowser .ExecWB(SHDocVw .OLECMDID.OLECM DID_PRINT,SHDoc Vw.OLECMDEXECOP T
..OLECMDEXECOPT _PROMPTUSER, ref nullObject, ref nullObject);
}
Cheers
Mark
Currently I can print the HTML page I am looking at in portrait format but I
want to change this to landscape.
Does anyone know how to do this?
My current (short but simple) code is:
private void printButton_Cli ck(object sender, System.EventArg s e) {
object nullObject = null;
this.webBrowser .ExecWB(SHDocVw .OLECMDID.OLECM DID_PRINT,SHDoc Vw.OLECMDEXECOP T
..OLECMDEXECOPT _PROMPTUSER, ref nullObject, ref nullObject);
}
Cheers
Mark