Quantcast
Channel: General Office Development forum
Viewing all articles
Browse latest Browse all 2257

Unknown exception happened in Office365 ProPlus PowerPoint 2013

$
0
0

Can anybody help on this issue? I installed Office365 ProPlus 32bit.

I've an application (write with c++) doing PowerPoint automation.

When i invoke the Open2007 method of Presentations object through IDispatch, to open one PPT file, it return 0x80020009 error, withpExcepInfo->sCode equals -2147467259.

    VARIANT vPresent;
    vPresent.vt = VT_EMPTY;
    VARIANT vt[5];
    DISPPARAMS dispParamArgs={vt,NULL,5,0};
    vt[4].vt=VT_BSTR;
    vt[4].bstrVal=strFile;    //file name to open
    vt[3].vt=VT_BOOL;
    vt[3].boolVal=TRUE;   //open with read only
    vt[2].vt=VT_BOOL;
    vt[2].boolVal=FALSE;   //no title
    vt[1].vt=VT_BOOL;
    vt[1].boolVal=FALSE;   //open with the file invisible
    vt[0].vt=VT_BOOL;
    vt[0].boolVal=TRUE;    //open with repair
    EXCEPINFO excInfo;
    hResult=IDispPresentations->Invoke(DispIDOpen2007,IID_NULL,LOCALE_USER_DEFAULT,DISPATCH_METHOD,&dispParamArgs,&vPresent,&excInfo,NULL);


Viewing all articles
Browse latest Browse all 2257

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>