473,320 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

PowerPoint 2003 cannot open PPT file

PowerPoint.Application cannot open PPT file

I am trying to use the following code using to open a PPT file using VS.NET 2003 and PowerPoint 2003

Option Strict Off
Imports System.Runtime.InteropServices
Imports Microsoft.Office.Interop
Imports Microsoft.Office.Interop.PowerPoint
Imports Microsoft.Office.Core
Imports Microsoft.Office.Core.MsoControlType
Imports Microsoft.Office.Core.MsoButtonStyle
Imports Microsoft.Office.Core.MsoFileDialogType
Imports Microsoft.Office.Core.MsoFileDialogView
Imports Microsoft.Office.Core.MsoTriState

Sub openPPT()
Dim oPowerApp As Object
oPowerApp = CreateObject("PowerPoint.Application")
oPowerApp.WindowState = PowerPoint.PpWindowState.ppWindowNormal
oPowerApp.Presentations.Open("C:\TestMedia\w\PPT\A DB_MEET.PPT")
End Sub

When I try this I get the following error:

C:\EDDWorkArea\testarea\OfficeAPI\Form1.vb(163): Reference required to assembly 'office' containing the type 'Microsoft.Office.Core.MsoTriState'. Add one to your project.

On Line: oPowerApp.Presentations.Open("C:\TestMedia\w\PPT\A DB_MEET.PPT")

I have been stumped on this for the last couple of days and I have gotten no were. I have gotten this to work in PowerPoint2002 with no problems. This issues can also be duplicated on multip machines.

Any help would be greatly appricated.

Thanks,

Ryan
Jul 21 '05 #1
1 6316
I answered my own questions. When using late binding it works as expected

"Ryan" wrote:
PowerPoint.Application cannot open PPT file

I am trying to use the following code using to open a PPT file using VS.NET 2003 and PowerPoint 2003

Option Strict Off
Imports System.Runtime.InteropServices
Imports Microsoft.Office.Interop
Imports Microsoft.Office.Interop.PowerPoint
Imports Microsoft.Office.Core
Imports Microsoft.Office.Core.MsoControlType
Imports Microsoft.Office.Core.MsoButtonStyle
Imports Microsoft.Office.Core.MsoFileDialogType
Imports Microsoft.Office.Core.MsoFileDialogView
Imports Microsoft.Office.Core.MsoTriState

Sub openPPT()
Dim oPowerApp As Object
oPowerApp = CreateObject("PowerPoint.Application")
oPowerApp.WindowState = PowerPoint.PpWindowState.ppWindowNormal
oPowerApp.Presentations.Open("C:\TestMedia\w\PPT\A DB_MEET.PPT")
End Sub

When I try this I get the following error:

C:\EDDWorkArea\testarea\OfficeAPI\Form1.vb(163): Reference required to assembly 'office' containing the type 'Microsoft.Office.Core.MsoTriState'. Add one to your project.

On Line: oPowerApp.Presentations.Open("C:\TestMedia\w\PPT\A DB_MEET.PPT")

I have been stumped on this for the last couple of days and I have gotten no were. I have gotten this to work in PowerPoint2002 with no problems. This issues can also be duplicated on multip machines.

Any help would be greatly appricated.

Thanks,

Ryan

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Marc Eggenberger | last post by:
Hi there. I have an webapp (asp.net) which should use powerpoint to create a presentation and then send that presentation to the user. I'm using VS2003 and Office2003 (project req.). The...
2
by: Jonathan Trevor | last post by:
Hi, For the last couple of releases of a product we're developing we've been running to very wierd behavior from IE and our ASP.NET web application which serves up various types of files and I'm...
8
by: Rut | last post by:
Does anyone know how to start powerpoint from vb.net without the ppt screen appearing. I want to keep it hidden? Using this code: Try pp = New PowerPoint.Application pp.Visible =...
1
by: Ryan | last post by:
PowerPoint.Application cannot open PPT file I am trying to use the following code using to open a PPT file using VS.NET 2003 and PowerPoint 2003 Option Strict Off Imports...
1
by: ellenh | last post by:
I have read postings on the similar subject including the posting from 2003 shown below. This process works fine to display a single page snapshot report in PowerPoint. I need to display...
1
by: marcelcaraciolo | last post by:
Hi, I'm developing a software in Python that communicates with Powerpoint files. My application has to open the Microsoft Powerpoint 2003 and a file .ppt format and show the presentation. The...
11
by: ssims | last post by:
1) Is it possible to create a powerpoint file with asp.net? I've Googled it and can't seem to find a definitive guide. 2) If it is possible to create a powerpoint file with asp.net, is it...
8
by: =?Utf-8?B?R2VvcmdlQXRraW5z?= | last post by:
Greetings! I wrote a small Exe that simply runs Shell to load PowerPoint and launch a particular file, depending on the day of the week. However, it was set up for office 2003 (I naively hardcoded...
6
by: BWPanda | last post by:
Hi everyone, I'm wanting to use VB.NET to display a powerpoint presentation, much the same way as the presenter that comes with PowerPoint (when used on multiple monitors). Basically, I want to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.