Click to See Complete Forum and Search --> : Printing A Web Page
SteveCRM
Nov 28th, 1999, 05:58 AM
I just found out that this prints from a text box:
Printer.Print Text1
Printer.EndDoc
But when I change text1 to WebBrowser1 it prints "Microsoft Web Browser Control"
How Do I make it print the page?
Steve
Compwiz
Nov 28th, 1999, 06:01 AM
Use the following command:
WebBrowser1.ExecWB OLECMDID_PRINT
------------------
Tom Young, 14 Year Old
tyoung@stny.rr.com
ICQ: 15743470 (http://wwp.icq.com/15743470) Add Me (http://wwp.icq.com/scripts/search.dll?to=15743470) ICQ Me (http://wwp.icq.com/scripts/contact.dll?msgto=15743470)
AIM: TomY10 (http://www.aol.com/aim/aim30.html)
PERL, JavaScript and VB Programmer
SteveCRM
Nov 28th, 1999, 06:03 AM
Compile Error, Argument Not Optional
?
Steve
?
Compwiz
Nov 28th, 1999, 06:09 AM
OOPS.. sorry:
WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DODEFAULT
SteveCRM
Nov 28th, 1999, 06:11 AM
Thanks It Works Great!
Steve
Compwiz
Nov 28th, 1999, 06:13 AM
Love to help! :-)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.