![]() |
[SOLVED]PROBLEM Web Browser control |
Post Reply
|
| Author | |
shipwreck
Senior Member
Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
Quote Reply
Topic: [SOLVED]PROBLEM Web Browser controlPosted: 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_DODEFAULTBut 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 |
|
![]() |
|
dentor
Senior Member
Joined: 30 November 2005 Location: France Status: Offline Points: 102 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
shipwreck
Senior Member
Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
dentor
Senior Member
Joined: 30 November 2005 Location: France Status: Offline Points: 102 |
Post Options
Thanks(0)
Quote Reply
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, ...
![]() |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |