From: Peter Ahlgren on 22 Mar 2010 12:31 Dear Rick This works: Table1.Table.Cell(1,1).Shape.TextFrame.TextRange.text = 'Test' using the "code complete" (pressing "tab") and functions like get and inspect can help you out on these not-documented features. There are many reason to NOT go via Excel. For instance, if you open an existing ppt/pptx, the table you create folows any masters in the presentation. Peter rickcanham <rickcanham(a)hotmail.com> wrote in message <71a3ac6c-15cd-4262-af0e-ed5e7927b597(a)33g2000yqo.googlegroups.com>... > Does anyone know how to fill in a Powerpoint table with MATLAB? I can > do program everything else I need it to do but when I use the Cell > method I get an error stating "??? No appropriate method, property, or > field Selection for class > Interface.Microsoft_PowerPoint_12.0_Object_Library.Shape." > > My code is > > PPT = actxserver('PowerPoint.Application'); > PPT.Visible = true; > PPTpres = invoke(ppt.Presentations,'Add'); > Slide1=invoke(PPTpres.Slides,'Add',1,12); > Table1=Slide1.Shapes.AddTable(3, 4, 10, 10, 288, 216); > Table1.Cell(1, 1).Shape.TextFrame.TestRange.Text='test' > > I've tried several different variants of the last line and nothing has > worked yet. > Thanks, > Rick
|
Pages: 1 Prev: initializing complex matrix dynamically Next: selecting non rectanglke part of an image |