A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Access object in explorer from type olExplorer



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 18th 07, 01:38 PM posted to microsoft.public.outlook.program_addins
Christian Havel
external usenet poster
 
Posts: 43
Default Access object in explorer from type olExplorer

Hi,

I have an HTML page which contains an grid control. In JavaScript I access
the grid control like following:

document.all['componentName']

In Outlook I check on ActiveExplorers class on type "olExplorer". I added a
reference to the mshtml.lib and retrieved the ActiveExplorer content like
following:

Dim htmlDoc As MSHTML.HTMLDocument
Set htmlDoc = Application.ActiveExplorer.HTMLDocument

Now I want to access my component. My idea was to access it like in
JavaScript, but in the document the 'componentName' object was not found.

How can I access my component in the HTMLDocument in the ActiveExplorer?
Christian
Ads
  #2  
Old October 18th 07, 07:43 PM posted to microsoft.public.outlook.program_addins
Helmut Obertanner
external usenet poster
 
Posts: 4
Default Access object in explorer from type olExplorer

Hi Christian,

try to use the GetElementByID method.
That should give you the object.

Hope this helps,
Greets, Helmut


"Christian Havel" schrieb im
Newsbeitrag news
Hi,

I have an HTML page which contains an grid control. In JavaScript I access
the grid control like following:

document.all['componentName']

In Outlook I check on ActiveExplorers class on type "olExplorer". I added
a
reference to the mshtml.lib and retrieved the ActiveExplorer content like
following:

Dim htmlDoc As MSHTML.HTMLDocument
Set htmlDoc = Application.ActiveExplorer.HTMLDocument

Now I want to access my component. My idea was to access it like in
JavaScript, but in the document the 'componentName' object was not found.

How can I access my component in the HTMLDocument in the ActiveExplorer?
Christian


  #3  
Old October 19th 07, 08:56 AM posted to microsoft.public.outlook.program_addins
Christian Havel
external usenet poster
 
Posts: 43
Default Access object in explorer from type olExplorer

Hi Helmut,

thanks for you help!

I tried it like following:

Set myComponent = htmlDoc.getElementById("componentName")
and
Set myComponent =
htmlDoc.documentElement.document.getElementById("c omponentName")

The component is not found. The component is a managed grid. Could this be
the problem? Do you have any other idea?
Thanks
Christian


"Helmut Obertanner" wrote:

Hi Christian,

try to use the GetElementByID method.
That should give you the object.

Hope this helps,
Greets, Helmut


"Christian Havel" schrieb im
Newsbeitrag news
Hi,

I have an HTML page which contains an grid control. In JavaScript I access
the grid control like following:

document.all['componentName']

In Outlook I check on ActiveExplorers class on type "olExplorer". I added
a
reference to the mshtml.lib and retrieved the ActiveExplorer content like
following:

Dim htmlDoc As MSHTML.HTMLDocument
Set htmlDoc = Application.ActiveExplorer.HTMLDocument

Now I want to access my component. My idea was to access it like in
JavaScript, but in the document the 'componentName' object was not found.

How can I access my component in the HTMLDocument in the ActiveExplorer?
Christian



  #4  
Old October 19th 07, 06:56 PM posted to microsoft.public.outlook.program_addins
Helmut Obertanner
external usenet poster
 
Posts: 4
Default Access object in explorer from type olExplorer

Hello Christian,

is the Component a Serverside component ?
Normally on the client you would only get HTML, except when you have
registered the
component locally and have embedded the component as object.... in the
html page.

Greets, Helmut


"Christian Havel" schrieb im
Newsbeitrag ...
Hi Helmut,

thanks for you help!

I tried it like following:

Set myComponent = htmlDoc.getElementById("componentName")
and
Set myComponent =
htmlDoc.documentElement.document.getElementById("c omponentName")

The component is not found. The component is a managed grid. Could this be
the problem? Do you have any other idea?
Thanks
Christian


"Helmut Obertanner" wrote:

Hi Christian,

try to use the GetElementByID method.
That should give you the object.

Hope this helps,
Greets, Helmut


"Christian Havel" schrieb im
Newsbeitrag news
Hi,

I have an HTML page which contains an grid control. In JavaScript I
access
the grid control like following:

document.all['componentName']

In Outlook I check on ActiveExplorers class on type "olExplorer". I
added
a
reference to the mshtml.lib and retrieved the ActiveExplorer content
like
following:

Dim htmlDoc As MSHTML.HTMLDocument
Set htmlDoc = Application.ActiveExplorer.HTMLDocument

Now I want to access my component. My idea was to access it like in
JavaScript, but in the document the 'componentName' object was not
found.

How can I access my component in the HTMLDocument in the
ActiveExplorer?
Christian




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.Outlook.ContactItem'. Dhananjay Outlook and VBA 3 October 13th 07 07:56 AM
Preventing Web Page Access from Explorer.exe [email protected] Outlook Express 1 August 2nd 07 07:23 PM
Outlook Application ActiveWindow() always return Explorer object AtulSureka Outlook - Using Forms 3 October 10th 06 02:31 PM
Type of object for AdvancedSearch Renjith Outlook and VBA 4 May 17th 06 02:13 PM
Move object type Bob Smith Outlook and VBA 1 May 16th 06 07:08 AM


All times are GMT +1. The time now is 09:22 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.