P
Patrick
I have a PowerPoint automation tool that will add a new slide and place an
Embedded Microsoft Excel Chart object on the slide. Once I have it how do I
access the object so that I can change the data on the second worksheet,
change the chart type, title, ...
Here is the VB .Net code I have to create the Excel Chart:
oApp.ActiveWindow.View.GotoSlide(Index:=oApp.ActivePresentation.Slides.Add(Index:=2, Layout:=PowerPoint.PpSlideLayout.ppLayoutText).SlideIndex)
oApp.ActiveWindow.Selection.SlideRange.Layout =
PowerPoint.PpSlideLayout.ppLayoutTitleOnly
oApp.ActiveWindow.Selection.SlideRange.Shapes.AddOLEObject(Left:=120,
Top:=110, Width:=480, Height:=320, ClassName:="Excel.Chart.8",
Link:=1).Select()
oApp.ActiveWindow.Selection.Unselect()
Embedded Microsoft Excel Chart object on the slide. Once I have it how do I
access the object so that I can change the data on the second worksheet,
change the chart type, title, ...
Here is the VB .Net code I have to create the Excel Chart:
oApp.ActiveWindow.View.GotoSlide(Index:=oApp.ActivePresentation.Slides.Add(Index:=2, Layout:=PowerPoint.PpSlideLayout.ppLayoutText).SlideIndex)
oApp.ActiveWindow.Selection.SlideRange.Layout =
PowerPoint.PpSlideLayout.ppLayoutTitleOnly
oApp.ActiveWindow.Selection.SlideRange.Shapes.AddOLEObject(Left:=120,
Top:=110, Width:=480, Height:=320, ClassName:="Excel.Chart.8",
Link:=1).Select()
oApp.ActiveWindow.Selection.Unselect()