• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 993
  • Last Modified:

adding a ole component to a datawindow and accessing it's functions

hello , my problem is this:
I want to add a web browser component to a datawindow and access it's document property (to load a different page for each row for example)
any ideea how to do that ?
0
Rayden_The_God
Asked:
Rayden_The_God
  • 4
  • 2
1 Solution
 
tr1l0b1tCommented:
Insert a Microsoft Web Browser control (ole_1) in the DataWindow (dw_1)
and then from script use :

dw_1.object.ole_1.object.navigate("http://www.myurl.com")

Hope it helps.
Regards
0
 
tr1l0b1tCommented:
This article related to window WebBrowser control extends above post and should help you too :
http://gethelp.devx.com/techtips/pb_pro/10min/10min0699.asp
0
 
Rayden_The_GodAuthor Commented:
It dosen't work , I get an error : Error accessing external object property navigate
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
tr1l0b1tCommented:
Hi,

I've tested and works fine. Please follow these steps an let me know if it fails again :

In dw painter go to : Insert > Control > OLE Object

click on the datawindow to place the control then you will be presented with the OLE control list dialog. Click on the Insert Control tab and scroll the list of Control Types until you see the Microsoft Web Browser control. Double click on the control and the dialog will be dismissed. Name the control ole_1.

Now assuming in a window you have a DW control called 'dw_1' with the previous datawindow object in it, add a CommandButton to the window and add this code to the 'clicked' event :

dw_1.object.ole_1.object.Navigate("http://www.theurl.com")
0
 
Rayden_The_GodAuthor Commented:
thanks , id didn't work before because I didn't use retrieve in the datawindow :)
0
 
tr1l0b1tCommented:
thanks to you, I've completed Master Level with your points ! ;)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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