code not working

Y

Yash

Hi,

We are using the power point interop assemblies to get the data from
powerpoint.
Following code is used to open the presentation

Presentations ppts = _pptApp.Presentations;
_ppt = ppts.Open(PPTFile, MsoTriState.msoFalse, MsoTriState.msoFalse,
MsoTriState.msoFalse);
_path = PPTFile;

Initially I had the office 2003 installed. At that time this code was
working. Now as soon as i installed office 2007(powerpoint, word and excel)
this code is throwing me the following excaption in the Open call

Error HRESULT E_FAIL has been returned from a call to a COM component.

Note that i have both 2003 and 2007 on my machine.



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