Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - [SOLVED]PROBLEM Web Browser control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED]PROBLEM Web Browser control

 Post Reply Post Reply
Author
Message
shipwreck View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 April 2008
Location: United States
Status: Offline
Points: 308
Post Options Post Options   Thanks (0) Thanks(0)   Quote shipwreck Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED]PROBLEM Web Browser control
    Posted: 22 February 2009 at 2:54am
I need to display page properties with your web browser control.

This code works with the MS Version:
WebBrowser1.ExecWB OLECMDID_PROPERTIES, OLECMDEXECOPT_DODEFAULT

But with yours, nothing appears. How can I fix this? or at least go around this. Please help!
Product: Xtreme Suite Pro (Active-X), Version 15.3.1

Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit)

Language: Visual Basic 6.0 SP6
Back to Top
dentor View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2005
Location: France
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote dentor Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2009 at 5:32am
Hello Shipwreck,
 
Const OLECMDID_PROPERTIES = 10
Const OLECMDEXECOPT_DODEFAULT = 0
 
WebBrowser1.ExecWB OLECMDID_PROPERTIES, OLECMDEXECOPT_DODEFAULT  ' *** Properties
 
It works for me.
 
Back to Top
shipwreck View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 April 2008
Location: United States
Status: Offline
Points: 308
Post Options Post Options   Thanks (0) Thanks(0)   Quote shipwreck Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2009 at 6:00am
Hey there dentor.

All I can say is THANK YOU! I really didn't want to have to revert to the ol' MS control.
But another quick question my friend. Would this method work as torwards other 'execWB' events such as save as and what not?
Thanks!
Product: Xtreme Suite Pro (Active-X), Version 15.3.1

Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit)

Language: Visual Basic 6.0 SP6
Back to Top
dentor View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2005
Location: France
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote dentor Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2009 at 11:57am
Of course, here are some commands I used with Codejock Web Browser Control:
 
Const OLECMDID_PRINT = 6
Const OLECMDID_PRINTPREVIEW = 7
Const OLECMDID_PAGESETUP = 8
Const OLECMDID_PROPERTIES = 10
Const OLECMDID_ZOOM = 19
Const OLECMDID_SAVEAS = 4
Const OLECMDEXECOPT_DONTPROMPTUSER = 2
Const OLECMDEXECOPT_DODEFAULT = 0
 
WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DODEFAULT  ' *** Print
WB.ExecWB OLECMDID_PRINTPREVIEW, OLECMDEXECOPT_DODEFAULT  ' *** Print Preview
WB.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_DODEFAULT ' *** SaveAs
WB.ExecWB OLECMDID_PAGESETUP, OLECMDEXECOPT_DODEFAULT  ' *** Page Setup
WB.ExecWB OLECMDID_PROPERTIES, OLECMDEXECOPT_DODEFAULT  ' *** Properties
 
You can test others as Zoom, ...
 

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.