User-739425036 posted
hi experts
am creating a chart in powerpoint. chart is creating but some times there occure a error .
i have added references - Microsoft office 10.0 Object Library,Microsoft PowerPoint 10.0 Object Library. what more i need to do for remove error . error is like this-
server error in '/'Application.
server execution failed
system.runtime.interopservices.comexception server execution failed
am using this code
pptApp1 = New Microsoft.Office.Interop.PowerPoint.Application pptPres1 = pptApp1.Presentations.Add
pptSlide = pptPres1.Slides.Add(1, PpSlideLayout.ppLayoutBlank)
pptGraphHolder = pptSlide.Shapes.AddOLEObject(Left:=50, Top:=20, Width:=641, Height:=535, ClassName:="MSGraph.Chart", Link:=msoFalse)
gphChart = pptGraphHolder.OLEFormat.Object
please help any body in detail
thanks