Hey guys,

I'm programming a tool for creating PowerPoint slideshows from an images directory.

I get the error "Error HRESULT E_FAIL has been returned from a call to a COM component" on the second line of this code:

ApplicationClass powerpoint = new ApplicationClass();
Presentation ppt = powerpoint.Presentations.Add(MsoTriState.msoFalse);

I looked everywhere and I couldn't find a solution, please help!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.