RE: [Rcom-l] Example exporting R graph to Powerpoint

2007-11-20 Thread Wayne.W.Jones
Excellent that works!! Thanks for the help. Wayne -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Erich Neuwirth Sent: 20 November 2007 09:13 To: R (D)COM and RExcel server related issues Subject: Re: [Rcom-l] Example exporting R graph to Powerpoint

Re: [Rcom-l] Example exporting R graph to Powerpoint

2007-11-20 Thread Erich Neuwirth
This code works. ppt<-comCreateObject("Powerpoint.Application") comSetProperty(ppt,"Visible",TRUE) myPresColl<-comGetProperty(ppt,"Presentations") myPres<-comInvoke(myPresColl,"Add") mySlides<-comGetProperty(myPres,"Slides") mySlide<-comInvoke(mySlides,"Add",1,12) myShapes<-comGetProperty(mySlide,

RE: [Rcom-l] Example exporting R graph to Powerpoint

2007-11-19 Thread Markus Gesmann
Dear Wayne, Wouldn't it be sufficient to know how to insert a picture file into PowerPoint via rcom? The following VBA code does that: ' VBA PowerPoint Sub InsertGraphicOnSlide() Dim ppApp As PowerPoint.Application Dim ppPres As PowerPoint.Presentation Dim ppShape As PowerPoint.Shape