Asked By idreesbutt
19-Jan-10 05:07 PM
Hi,
I am trying to generate a powerpoint presentation in C#. It works well on my
local machine which is running XP. When I run the application on Windows
Server 2003 (our Server) the presentation gives HRESULT E_FAIL when I call
the following code
chart = (Microsoft.Office.Interop.Graph.Chart)slide.Shapes.AddOLEObject
(GetLeft(i), GetTop(i), GetWidth(i), GetHeight(i), "MSGraph.Chart", "",
Microsoft.Office.Core.MsoTriState.msoFalse, "", 0, "", Microsoft.Office.Core.
MsoTriState.msoFalse).OLEFormat.Object;
I have no idea what goes wrong with it on the Server. The PPT is generated
perfectly with all other data (tables, text) shown perfectly! Please help! I
have uninstalled and reinstalled Standard Office 2007 many times now. Ran
Registry cleaner as well. Did alot of google! this is really frustrating!
Please help!