Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / VS Tools for Office / December 2006

Tip: Looking for answers? Try searching our database.

Starting PowerPoint from VB.NET 2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave - 19 Dec 2006 13:06 GMT
Good morning,

I've spent about 10 hours so far trying to do something that in VB6
took me 1 hour or so.

I'm simply trying to open up a powerpoint presentation from VB.NET.
Here is what I did:

1) First I tried creating a reference to Microsoft Powerpoint 10.0
Object Library 2.7.  I got a bunch of obscure seucrity permission
problems.  So I searched the web....

Dim oApp=Powerpoint.Application
oApp = new PowerPoint.Application

2) I found a microsoft page telling me that I had to install some
Microsoft.Office.Interop libraries.  I installed them and now my
project give me a strange stack error (not helpful at all)

3) I decided to try to figure out if I can fix the original security
permission error with the option #1.  Now I'm getting a <The system
cannot find the reference specified> in the Refrences tab of the
project properties.

Now, I realize that the installation of the PIAs was done in the GAC
folder in the assembly, but I can't seem to add a reference to it.

Can someone please lead me down the right path?

I'm trying hard not to go back to my old habits and VB6.

Thanks,

Dave
Cindy M. - 22 Dec 2006 17:21 GMT
Hi Dave,

The better place to ask general questions about automating Office
applications is the office.developer.automation newsgroup. This group
is specific for questions about the VSTO technology, which is
something very specific and has nothing at all to do with Powerpoint
10.0 (or with Powerpoint, really).

It sounds like the problem you're running into is that you installed
the programming interfaces for Office 2003? Can you get back to that
page where you downloaded the PIAs?

I suggest you repost in the other newsgroup and try to provide more
information. The URL for the PIAs you downloaded, as well as more
complete error messages you're seeing.

> I've spent about 10 hours so far trying to do something that in VB6
> took me 1 hour or so.
[quoted text clipped - 24 lines]
>  
> I'm trying hard not to go back to my old habits and VB6.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.