Open Function not work in Vista

  • Thread starter Thread starter swje
  • Start date Start date
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
 
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.
 
Back
Top