1
Answer

'System.Runtime.InteropServices.COMException' occurred

Soumya K

Soumya K

16y
7.4k
1

Hi All

My  C# application is developed in dotnet 1.1 and in this I have module which is used to create .PPT files.So the application is develpoed for office 2003.Now i had a requirement to create PPT file in Office 2007.I have added the assemblies for 2007.While trying to run it throws the exception 'System.Runtime.InteropServices.COMException' occurred .

While debugging i found out that this line is causing the error

objPres = objPresSet.Open(strTemplate,

MsoTriState.msoFalse, MsoTriState.msoTrue, MsoTriState.msoTrue);

Instead of Open method I used Open2007 also.But error messgae is coming

Please give some sugestions to solve this.

Thanks in advance..

Answers (1)