Dear All
I am try to print a html document from my webrowser control . for that i use
the follwing command

Me.webbrowser.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DODEFAULT)

It works well.
My problem is to set the header and footer and extra options available on
the ExecWB

http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrowser/reference/ifaces/iwebbrowser2/iwebbrowser2.asp

I am found an example in C++
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q267240

But i didn't able to conevrt in to vb.net or c# .net

What are the marshaling works for passing the pvain argument in the follwing
function declaration

Me.webbrowser.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DODEFAULT, byref pvaIN as object, byref
pvaOut as object)

------------------------------------------------------
regards
prakash