Open Function not work in Vista

S

swje

We develop a program in machine running Office 2007 under Vista32,
run below code:
_PPTApp = new PowerPoint.Application();
_PPTApp.Visible = Office.MsoTriState.msoTrue;
_Presentation = _PPTApp.Presentations.Open("A PPT File",
ObjectReadyOnly, Office.MsoTriState.msoFalse, Office.MsoTriState.msoTrue);
in Open method,pop a message" Error HRESULT E_FAIL has been returned from
a call to a COM component." ,
the method work well in enviorment Office 2007 + XP.

Any advice will be ppreciate,

Thanks in advance!
Scott
 
S

swje

the path is "C:\\Users\\Scott\\Desktop\\PowerPoint.pptx", or
"C:\Users\Scott\Documents\My
Projects\Sample\Documents\Presentation.pptx",
there are all open error. FYI, user Scott has administrator right.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top