How to show contents/ rows in pptx table based of given height?Is this fessible?

Ravi Kiran Rimmanapudi 21 Reputation points
2022-03-31T09:35:38.063+00:00

188721-word-full.jpg188684-word-heightset.jpg

word-full.jpg contains a table in word without any height set
word-heightset.jpg shows view of a partial table when some height set.
Requirement of showing partial table can be acheived using below
<w:trPr>
<w:trHeight w:hRule="exact" w:val="300.0"/>
</w:trPr>

can we achieve the same i.e showing patial table when some height is set.

Regards
Ravi Kiran

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,459 questions
Office Open Specifications
Office Open Specifications
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Open Specifications: Technical documents for protocols, computer languages, standards support, and data portability. The goal with Open Specifications is to help developers open new opportunities to interoperate with Windows, SQL, Office, and SharePoint.
119 questions
PowerPoint Management
PowerPoint Management
PowerPoint: A family of Microsoft presentation graphics products that offer tools for creating presentations and adding graphic effects like multimedia objects and special effects with text.Management: The act or process of organizing, handling, directing or controlling something.
220 questions
{count} votes

Accepted answer
  1. Hung-Chun Yu 976 Reputation points Microsoft Employee
    2022-04-08T07:37:14.993+00:00

    Hi @Ravi Kiran Rimmanapudi

    Here what I found out

    If the ask is “Can I make rows of a table stop rendering by reducing the height of the table”, then we don’t believe so.
    See the following experiment:

    1. Insert a table with 2 columns and 3 rows, save as A.pptx
    2. Edit the height of the table in the file format and save as a different file

    Left: C:\Users\jesseh\Desktop\Tables\A.pptx\ppt\slides\slide1.xml
    Right: C:\Users\jesseh\Desktop\Tables\A_ChangeTransformHeight.pptx\ppt\slides\slide1.xml

    18 <p:graphicFrame>
    19 <p:nvGraphicFramePr>
    20 <p:cNvPr id="4" name="Table 4">
    21 <a:extLst>
    22 <a:ext uri="{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}">
    23 <a16:creationId xmlns:a16=http://schemas.microsoft.com/office/drawing/2014/main id="{A0988E0F-12F8-3BCB-075E-B2A0A4F86C0F}" />
    24 </a:ext>
    25 </a:extLst>
    26 </p:cNvPr>
    27 <p:cNvGraphicFramePr>
    28 <a:graphicFrameLocks noGrp="1" />
    29 </p:cNvGraphicFramePr>
    30 <p:nvPr>
    31 <p:extLst>
    32 <p:ext uri="{D42A27DB-BD31-4B8C-83A1-F6EECF244321}">
    33 <p14:modId xmlns:p14=http://schemas.microsoft.com/office/powerpoint/2010/main val="2205217176" />
    34 </p:ext>
    35 </p:extLst>
    36 </p:nvPr>
    37 </p:nvGraphicFramePr>
    38 <p:xfrm>
    39 <a:off x="2032000" y="719666" />

    191197-image.png

    41 </p:xfrm>

    Comments:

    They render the same, it appears to us that the height of the rows is used to determine the overall size of the table – not the other way around.
    191179-image.png

    If the ask is “Can I resize the height of a row in a table” then yes:
    Here is the second experiment:

    1. Insert a table with 2 columns and 3 rows, save as A.pptx
    2. Manually change the height of the middle row and save as B.pptxd
    3. Manually change the height of the first row and save as C.pptx

    191223-image.png

    Diffing A and B shows that we change the overall height of the shape along with the “h” attribute of the a:tr element:
    Left: C:\Users\jesseh\Desktop\Tables\A.pptx\ppt\slides\slide1.xml
    Right: C:\Users\jesseh\Desktop\Tables\B.pptx\ppt\slides\slide1.xml

    18 <p:graphicFrame>
    19 <p:nvGraphicFramePr>
    20 <p:cNvPr id="4" name="Table 4">
    21 <a:extLst>
    22 <a:ext uri="{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}">
    23 <a16:creationId xmlns:a16=http://schemas.microsoft.com/office/drawing/2014/main id="{A0988E0F-12F8-3BCB-075E-B2A0A4F86C0F}" />
    24 </a:ext>
    25 </a:extLst>
    26 </p:cNvPr>
    27 <p:cNvGraphicFramePr>
    28 <a:graphicFrameLocks noGrp="1" />
    29 </p:cNvGraphicFramePr>
    30 <p:nvPr>
    31 <p:extLst>
    32 <p:ext uri="{D42A27DB-BD31-4B8C-83A1-F6EECF244321}">

    191198-image.png

    34 </p:ext>
    35 </p:extLst>
    36 </p:nvPr>
    37 </p:nvGraphicFramePr>
    38 <p:xfrm>
    39 <a:off x="2032000" y="719666" />

    191301-image.png

    41 </p:xfrm>
    42 <a:graphic>
    43 <a:graphicData uri=http://schemas.openxmlformats.org/drawingml/2006/table>

    44 <a:tbl>
    45 <a:tblPr firstRow="1" bandRow="1">
    46 <a:tableStyleId>{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}</a:tableStyleId>
    47 </a:tblPr>
    48 <a:tblGrid>
    49 <a:gridCol w="4064000">
    50 <a:extLst>
    51 <a:ext uri="{9D8B030D-6E8A-4147-A177-3AD203B41FA5}">
    52 <a16:colId xmlns:a16=http://schemas.microsoft.com/office/drawing/2014/main val="173072972" />

    53 </a:ext>
    54 </a:extLst>
    55 </a:gridCol>
    56 <a:gridCol w="4064000">
    57 <a:extLst>
    58 <a:ext uri="{9D8B030D-6E8A-4147-A177-3AD203B41FA5}">
    59 <a16:colId xmlns:a16=http://schemas.microsoft.com/office/drawing/2014/main val="4196258938" />
    60 </a:ext>
    61 </a:extLst>
    62 </a:gridCol>
    63 </a:tblGrid>
    64 <a:tr h="370840">
    65 <a:tc>
    66 <a:txBody>
    67 <a:bodyPr />
    68 <a:lstStyle />
    69 <a:p>
    70 <a:endParaRPr lang="en-US" />
    71 </a:p>
    72 </a:txBody>
    73 <a:tcPr />
    74 </a:tc>
    75 <a:tc>
    76 <a:txBody>
    77 <a:bodyPr />
    78 <a:lstStyle />
    79 <a:p>
    80 <a:endParaRPr lang="en-US" />
    81 </a:p>
    82 </a:txBody>
    83 <a:tcPr />
    84 </a:tc>
    85 <a:extLst>
    86 <a:ext uri="{0D108BD9-81ED-4DB2-BD59-A6C34878D82A}">
    87 <a16:rowId xmlns:a16=http://schemas.microsoft.com/office/drawing/2014/main val="4292032796" />
    88 </a:ext>
    89 </a:extLst>
    90 </a:tr>

    191296-image.png

    92 <a:tc>
    93 <a:txBody>
    94 <a:bodyPr />
    95 <a:lstStyle />
    96 <a:p>
    97 <a:endParaRPr lang="en-US" />
    98 </a:p>
    99 </a:txBody>
    100 <a:tcPr />
    101 </a:tc>
    102 <a:tc>
    103 <a:txBody>
    104 <a:bodyPr />
    105 <a:lstStyle />
    106 <a:p>
    107 <a:endParaRPr lang="en-US" dirty="0" />
    108 </a:p>
    109 </a:txBody>
    110 <a:tcPr />
    111 </a:tc>
    112 <a:extLst>
    113 <a:ext uri="{0D108BD9-81ED-4DB2-BD59-A6C34878D82A}">
    114 <a16:rowId xmlns:a16=http://schemas.microsoft.com/office/drawing/2014/main val="3262043133" />
    115 </a:ext>
    116 </a:extLst>
    117 </a:tr>
    118 <a:tr h="370840">
    119 <a:tc>
    120 <a:txBody>
    121 <a:bodyPr />
    122 <a:lstStyle />
    123 <a:p>
    124 <a:endParaRPr lang="en-US" />
    125 </a:p>
    126 </a:txBody>
    127 <a:tcPr />
    128 </a:tc>
    129 <a:tc>
    130 <a:txBody>
    131 <a:bodyPr />
    132 <a:lstStyle />
    133 <a:p>
    134 <a:endParaRPr lang="en-US" dirty="0" />
    135 </a:p>
    136 </a:txBody>
    137 <a:tcPr />
    138 </a:tc>
    139 <a:extLst>
    140 <a:ext uri="{0D108BD9-81ED-4DB2-BD59-A6C34878D82A}">
    141 <a16:rowId xmlns:a16=http://schemas.microsoft.com/office/drawing/2014/main val="4270578703" />
    142 </a:ext>
    143 </a:extLst>
    144 </a:tr>
    145 </a:tbl>
    146 </a:graphicData>
    147 </a:graphic>
    148 </p:graphicFrame>
    149 </p:spTree>

    Comments:

    Manually change only the height of the header directly via the file format:
    Left: C:\Users\jesseh\Desktop\Tables\A.pptx\ppt\slides\slide1.xml
    Right: C:\Users\jesseh\Desktop\Tables\A_JustChangeTR_H.pptx\ppt\slides\slide1.xml

    44 <a:tbl>
    45 <a:tblPr firstRow="1" bandRow="1">
    46 <a:tableStyleId>{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}</a:tableStyleId>
    47 </a:tblPr>
    48 <a:tblGrid>
    49 <a:gridCol w="4064000">
    50 <a:extLst>
    51 <a:ext uri="{9D8B030D-6E8A-4147-A177-3AD203B41FA5}">
    52 <a16:colId xmlns:a16=http://schemas.microsoft.com/office/drawing/2014/main val="173072972" />

    53 </a:ext>
    54 </a:extLst>
    55 </a:gridCol>
    56 <a:gridCol w="4064000">
    57 <a:extLst>
    58 <a:ext uri="{9D8B030D-6E8A-4147-A177-3AD203B41FA5}">
    59 <a16:colId xmlns:a16=http://schemas.microsoft.com/office/drawing/2014/main val="4196258938" />
    60 </a:ext>
    61 </a:extLst>
    62 </a:gridCol>
    63 </a:tblGrid>

    191188-image.png

    65 <a:tc>
    66 <a:txBody>

    Comments:

    191235-image.png

    As you can see, the larger row height resulted in the table being rendered as taller. Another point that makes us believe we determine the overall table dimensions based on the heights of the rows, not the other way around.

    Let me know if this answered your question.


0 additional answers

Sort by: Most helpful