Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Enter text in a table for powerpoint 2007?
Replies: 4   Last Post: May 2, 2013 3:40 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
rickcanham

Posts: 2
Registered: 1/25/10
Enter text in a table for powerpoint 2007?
Posted: Jan 25, 2010 6:32 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.