[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 214
  • Last Modified:

Web Browser Control and Printing: IE3 vs. IE4

Hello,

I have an application that uses the IE web browser control.  I let users print the contents of the web browser control by sending ^P to the browser.  If I compile the executable with IE3 on my system, users who have IE3 can print--^P works.  However, when I compile on a system that has IE4 (with sp 1), users who have IE4 can't print--they just get a beep.

Is there another method for printing the contents of the web browser if you are using IE4?

Thanks much in advance,

iwright@irrc.org
0
iw
Asked:
iw
1 Solution
 
clifABBCommented:
Use this code:
Private Sub Command1_Click()
  WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DODEFAULT
End Sub
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now