Home › Forums › Bug Report › Unable to import PowerPoint presentation
- This topic has 48 replies, 14 voices, and was last updated 9 years, 2 months ago by
alain.
-
AuthorPosts
-
February 22, 2012 at 08:28 #9269
mutsop
MemberWell both are PowerPoint 2007.
I checked the other pc for installed components like Form 2.0 support but unfortunately it is installed 😀
else I would know where the problem would be.I tried everything and am just stuck…
One thing I might suspect is the copy local of the libraries, problem is I’m working in an n-tier project so the libraries aren’t copied in my starter project but in the business (domain) project. So can I just copy it to the debug folder of the starter project?February 22, 2012 at 09:12 #9270alain
KeymasterDifficult to answer: I am using c# for my projects and you seem to use VB… and it is not quite the same.
But yes, you have to copy libraries to use PPT in your program. In my case I bundle “Microsoft.Office.Interop.PowerPoint.dll” and “Office.dll” in the same directory than my application.
February 22, 2012 at 10:14 #9271mutsop
MemberK weirdly enough, when I open powerpoint before using my program it does work.
So on the other computer it doesnt seem to work when running in the background.April 21, 2012 at 02:21 #9272jonno
ParticipantHi Alain,
I’m having the COM issue with the professional version 1.9.10 and Powerpoint 2010. I’ve installed VBA and rebooted but still having the issue. Below is the output from your check tool. Could you help?
Thanks in advance.
Regards,
Johnoutput:
Check CURRENT_USER…
Found nothing
Check LOCAL_MACHINE…
Found something: C:\PROGRA~1\MICROS~2\Office14\POWERPNT.EXE
Check if file exists
Found.
Check version
major: 14
minor: 0
Connect to PPT DLL
Connected to PPT DLL
Connect Error
System.InvalidCastException: Unable to cast COM object of type ‘Microsoft.Office.Interop.PowerPoint.ApplicationClass’ to interface type ‘Microsoft.Office.Interop.PowerPoint._Application’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{91493442-5A91-11CF-8700-00AA0060263B}’ failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
at Microsoft.Office.Interop.PowerPoint.ApplicationClass.get_Presentations()
at check_ppt.Form1..ctor()
Unable to cast COM object of type ‘Microsoft.Office.Interop.PowerPoint.ApplicationClass’ to interface type ‘Microsoft.Office.Interop.PowerPoint._Application’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{91493442-5A91-11CF-8700-00AA0060263B}’ failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
at Microsoft.Office.Interop.PowerPoint.ApplicationClass.get_Presentations()
at check_ppt.Form1..ctor()April 23, 2012 at 16:53 #9273alain
KeymasterHi jonno,
Sorry for the delay.
Some questions:
– Did you upgrade PPT from a previous version?
– If you start PPT before importing/exporting is it working?
– Did this work previously? is it something that happen only with SE 1.9.10?Thanks for these information: it will help me to figure out where the issue is.
April 24, 2012 at 01:14 #9274jonno
ParticipantHi Alain,
Thanks for your reply.
– I didn’t upgrade PPT from a previous version
– Starting PPT before importing doesn’t help
– I only just recently have a need to import PPT’s, after updating to 1.9.10 so I can’t say
for sure that it was working previously.I’m on vista (home edition) SP 1.
Office is installed at: C:\Program Files\Microsoft Office\Office14Regards,
JohnApril 24, 2012 at 09:36 #9275alain
KeymasterCan you do the following things:
1) Repair your Office installation
– Start menu
– Control panel
– Add Remove programs – Go to the tab Change or remove programs.
– Go to Microsoft Office.
– Click “Repair”Then check again with Slide Effect
2) Run this tool
If it is still not working, please download and run this modified check tool:
download link: https://www.slide-effect.com/tools/checkPPTex2.zip
And copy/paste the result here.
April 24, 2012 at 21:55 #9276jonno
ParticipantHi Alain,
Repairing MS Office did the trick! Thanks for your great support.
Regards,
JohnMay 17, 2013 at 06:25 #9277namhip
MemberHi Alain,
Thank you for helping
I have a trouble. My app use Winform C#, host powerpoint. My app work fine with Office 2010, but with Office 2007, sometime fine, sometime not. This is result 2 computer use Office 2007 when run checkPPTex2.zip.
//————Com1:
output:
Check CURRENT_USER…
Found nothing
Check LOCAL_MACHINE…
Found something: C:\PROGRA~1\MICROS~2\Office12\POWERPNT.EXE
Check if file exists
Found.
Check version
major: 12
minor: 0
Connect to PPT DLL
Connected to PPT DLL
Presentation Opened
Slide Number: 3
Slide Index: 0
Shape Count: 3
Shape Index: 0
Shape Is Text
Text is:tralala
Slide Index: 1
Shape Count: 3
Shape Index: 0
Shape Is Text
Text is:Title.
Shape Index: 1
Shape Is Text
Text is:Pouet
pouet
Slide Index: 2
Shape Count: 3
Shape Index: 0
Shape Is Text
Text is:zomg
Shape Index: 1
Shape Is Text
Text is:It is not working
Connect to PPT DLL second try
Connected to PPT DLL
Presentation Opened
Slide Number: 3
Slide Index: 0
Shape Count: 3
Shape Index: 0
Shape Is Text
Text is:tralala
Slide Index: 1
Shape Count: 3
Shape Index: 0
Shape Is Text
//————Com2:
output:
Check CURRENT_USER…
Found nothing
Check LOCAL_MACHINE…
Found something: C:\PROGRA~1\MICROS~2\Office12\POWERPNT.EXE
Check if file exists
Found.
Check version
major: 12
minor: 0
Connect to PPT DLL
Connected to PPT DLL
Connect Error
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at Microsoft.Office.Interop.PowerPoint.Presentations.Open(String FileName, MsoTriState ReadOnly, MsoTriState Untitled, MsoTriState WithWindow)
at check_ppt.Form1..ctor()
Error HRESULT E_FAIL has been returned from a call to a COM component.
at Microsoft.Office.Interop.PowerPoint.Presentations.Open(String FileName, MsoTriState ReadOnly, MsoTriState Untitled, MsoTriState WithWindow)
at check_ppt.Form1..ctor()
Connect to PPT DLL second try
Connected to PPT DLL
Connect Error
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at Microsoft.Office.Interop.PowerPoint.Presentations.Open(String FileName, MsoTriState ReadOnly, MsoTriState Untitled, MsoTriState WithWindow)
at check_ppt.Form1..ctor()
Error HRESULT E_FAIL has been returned from a call to a COM component.
at Microsoft.Office.Interop.PowerPoint.Presentations.Open(String FileName, MsoTriState ReadOnly, MsoTriState Untitled, MsoTriState WithWindow)
at check_ppt.Form1..ctor()
//———————-
Can you help me work with com2?
I was fixed Visual Basic for Applications
Thank you so much!May 17, 2013 at 08:48 #9278alain
KeymasterSorry, but other than installing VB or applications I have no idea. Difficult to know what’s going on with this small amount of information.
Did you compile your application with Office 2007 or 2010 DLLs? I think you have to compile with 2007 if you want to make it compatible with 2007/2010/…
In my case I compile with 2003 and everything works well on any version of PPT from 2003 to the latest.
Hope it helps.
September 1, 2013 at 16:28 #9279khadervali
MemberHi Alain,
I have develop an web application on VS 2010.i have use PowerPoint file to convert into slide images and show in datalist,its working fine in localhost.But when i publish the application in IIS 7.5 its showing the error like this
The remote procedure call failed. (Exception from HRESULT: 0x800706BE)
In this application i have use MS-Office 2010
September 1, 2013 at 16:28 #9280khadervali
MemberPls help me
September 2, 2013 at 08:41 #9281alain
KeymasterHi,
Sorry but I cannot help you on this issue, I don’t use PPT for a web application, check specialized forums for this kind of issues.
December 16, 2013 at 12:49 #9282siva_ds
MemberHi,
Can u tell me what is wrong here.I know this post is old but please help me…
output:
Check CURRENT_USER…
Found nothing
Check LOCAL_MACHINE…
Found something: C:\PROGRA~1\MICROS~1\Office14\POWERPNT.EXE
Check if file exists
Found.
Check version
major: 14
minor: 0
Connect to PPT DLL
Connected to PPT DLL
Connect Error
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at Microsoft.Office.Interop.PowerPoint.Presentations.Open(String FileName, MsoTriState ReadOnly, MsoTriState Untitled, MsoTriState WithWindow)
at check_ppt.Form1..ctor()
Error HRESULT E_FAIL has been returned from a call to a COM component.
at Microsoft.Office.Interop.PowerPoint.Presentations.Open(String FileName, MsoTriState ReadOnly, MsoTriState Untitled, MsoTriState WithWindow)
at check_ppt.Form1..ctor()
Connect to PPT DLL second try
Connected to PPT DLL
Connect Error
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at Microsoft.Office.Interop.PowerPoint.Presentations.Open(String FileName, MsoTriState ReadOnly, MsoTriState Untitled, MsoTriState WithWindow)
at check_ppt.Form1..ctor()
Error HRESULT E_FAIL has been returned from a call to a COM component.
at Microsoft.Office.Interop.PowerPoint.Presentations.Open(String FileName, MsoTriState ReadOnly, MsoTriState Untitled, MsoTriState WithWindow)
at check_ppt.Form1..ctor()December 17, 2013 at 06:56 #9283alain
Keymaster -
AuthorPosts
- The forum ‘Bug Report’ is closed to new topics and replies.