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

Getting error ": Error HRESULT E_FAIL has been returned from a call to a COM component." at running Console application for generating PPT

$
0
0

Dear All,

I am generating PPT slides with multiple charts on a single slide using C# and com library Microsoft.Office.Interop.PowerPoint.

I have tested it on both office 2010 and office 2013. But sometimes get error :" Error HRESULT E_FAIL has been returned from a call to a COM component". This error occurance is dynamic i.e sometimes happen sometimes not. 

Also above error mostly comes at below line of code at Microsoft.Office.Interop.PowerPoint.Chart.SetElement(MsoChartElementType Element).

Please provide solution.

Thanks,

Naveen


Viewing all articles
Browse latest Browse all 2257


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