Changing margin when print thru AxSHDocVw

ditchit

New member
Joined
Aug 24, 2004
Messages
1
Can print OK using code below but need to change the print margin. Can anyone help with this specifically or let me know where the documentation for this control can be found?

navigate to HTML page
Me.AxWebBrowser1.Navigate(www.yahoo.com")

wait for the page to be displayed in the browser
While Me.AxWebBrowser1.ReadyState <> SHDocVw.tagREADYSTATE.READYSTATE_COMPLETE
System.Windows.Forms.Application.DoEvents()
End While

print page
Me.AxWebBrowser1.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT, SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER, 0, 0)
 
Back
Top