I am creating a script to show graphs of product performance and creating a table to display its partnumber, a list of applications and the number of current applications.
A _Cell
object doesn't directly contain paragraphs. However, it does include a TextFrame
object on .text_frame
which contains the paragraphs. So if you just use:
cell.text_frame.paragraphs[0]
..you should get what you expect. Note that it's .paragraphs, not .paragraph.
The API documentation for _Cell
is here:
http://python-pptx.readthedocs.io/en/latest/api/table.html#cell-objects
and generally provides all the details needed to resolve the finer points like this one.