Print WebBrowser

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form with a WebBrowser objct on it. I need to be able to print out
the contents of the web page being displayed. I've tried

DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.PrintOut acPrintAll

and

DoCmd.SelectObject acForm, Me.Form, True
DoCmd.PrintOut acPrintAll


in both cases it prints out the form but not the contents of the webbrowser
on the form...can someone please point me in the right direction!

thanks in advance for your help!
 
There are quite a few hits from a google groups search for "webbrowser
print" without the quotes. Most of them are probably for VB, not VBA,
but they might help anyway.

HTH,
TC
 
The Browser supports rendering the current document to the Printer. If
you look in the HTML Editor program opn my site I think the Constant
Declarations are all there. Something like:
WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER


The Web Browser control based HTML Editor is here:
http://www.lebans.com/htmleditor.htm



--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Back
Top