On June 01, 2006 7:43 PM, Ricardo Alcocer wrote: > In summary, I'm looking for a way of printing the contents of an > HTMLViewer. I read about using EXECWB with MS WebBrowser > control under > Windows, but I tried adding it to my project, and it > complains during > the loading of the form, in WebBrowser1._InitialLayout. > > Has anyone found a a workaround to this?
Check this bug report. It has a workaround for this problem: http://tinyurl.com/9jsp5 > Is there way of printing it in code? The way you are using is correct. Print: WebBrowser1.ExecWB ( OLECMDID_PRINT, OLECMDEXECOPT_DODEFAULT ) Print preview: WebBrowser1.ExecWB ( OLECMDID_PRINTPREVIEW, OLECMDEXECOPT_DODEFAULT ) Constant values: OLECMDEXECOPT_DODEFAULT = 0 OLECMDID_PRINT = 6 OLECMDID_PRINTPREVIEW = 7 Carlos _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
