HRESULT E_FAIL

I

Idrees

Please help me!

I am getting HRESULT E_FAIL when I try to call the following function in c#

chart =
(Microsoft.Office.Interop.Graph.Chart)slide.Shapes.AddOLEObject(GetLeft(i),
GetTop(i), GetWidth(i), GetHeight(i), "MSGraph.Chart", "",
Microsoft.Office.Core.MsoTriState.msoTrue, "", 0, "",
Microsoft.Office.Core.MsoTriState.msoTrue).OLEFormat.Object;

this runs well on my local machine that runs XP but doesnt run on Windows
Server 2003. Also please note that powerpoint presentation works well and
tabular slides are generated perfectly. Only charts are not working. Have no
idea whats the issue!
 

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