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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top