?
Solved

Working with Shell.Explorer.2

Posted on 2011-09-03
10
Medium Priority
?
1,212 Views
Last Modified: 2012-05-12
I am using Visual Studio 2010 for a PowerPoint add-in that adds a webbrowser control to each new slide.  I'm using the following walkthrough for adding a textbox as a guide:
http://msdn.microsoft.com/en-us/library/cc668192.aspx

The add-in code below correctly adds the webbrowser control, but now I need to know how to manipulate the control.  For instance, when the slide is viewed for the first time, navigate to "about:blank"
Public Class ThisAddIn
    Private Sub Application_PresentationNewSlide(ByVal Sld As PowerPoint.Slide) _
    Handles Application.PresentationNewSlide
        Dim IE As PowerPoint.Shape = Sld.Shapes.AddOLEObject(Left:=10, Top:=10, Width:=600, Height:=400, ClassName:="Shell.Explorer.2")

    End Sub
End Class

Open in new window

0
Comment
Question by:motokent
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 23

Expert Comment

by:JSRWilson
ID: 36477669
You would need to add an event trap to the addin to detect the slide change event and use this to trigger code from  the SlideShownextSlide event
0
 

Author Comment

by:motokent
ID: 36477688
Can you show the simple example:  navigate to "about:blank"?

I've been struggling with this for a long time, and might be making simple mistakes.

Events in PowerPoint 2007 seem much different than in previous versions.
0
 
LVL 23

Expert Comment

by:JSRWilson
ID: 36477700
Events are pretty similar in 2007 to earlier versions (there are a few new ones) but they are not easy to use in any version!

Can you post whatever you have tried as I have no idea how much you know.

Are you using a class module? (you need to)
Have you declared a WithEvents variable?
Have yo instantiated a public instance in Auto_Open?
0
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.

 
LVL 23

Accepted Solution

by:
JSRWilson earned 2000 total points
ID: 36477702
0
 

Author Comment

by:motokent
ID: 36477724
The attachment is a scaled-down example.  It uses a webbrowser control that I added manually (ActiveX control vs using the Visual Studio add-in).  The EventClassModule is a remnant from my goofing around.  I couldn't make anything work.

0
 

Author Comment

by:motokent
ID: 36477739
Your link is the most useful thing I've seen so far....  I need two things:  1.) class module, and 2.) add-in to make it auto initialize

Right?
0
 
LVL 23

Expert Comment

by:JSRWilson
ID: 36477740
Yep

class module as part of the Add In

I don't work with  VSTO but that's what's needed in vba
0
 
LVL 23

Expert Comment

by:JSRWilson
ID: 36477746
PS I don't see an attachment!
0
 

Author Comment

by:motokent
ID: 36477755
I don't think Experts-Exchange allowed the file extension pptm.  Here's the file without the extension. simpleExample
0
 

Author Comment

by:motokent
ID: 36477759
Please do two things:  1.)add whatever you need to add to "simpleExample" and post it, then 2.)tell me what the add-in should look like.  I know it might seem simple, but this simple stuff has been a stumbling block for me.
0

Featured Post

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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Background   Certain code in VBA requires initialization, such as application events. The app initialization is often triggered by the Auto_Open sub which is a special procedure that runs when an add-in loads. More significantly, this sub does n…
This video teaches viewers how to create handouts from their slides and helps them decide how many slides to include per handout.
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question