Skip to content

Instantly share code, notes, and snippets.

@erdos
Created May 1, 2018 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erdos/3a69e5c5a9eb8ea26c4f8fc5951bc127 to your computer and use it in GitHub Desktop.
Save erdos/3a69e5c5a9eb8ea26c4f8fc5951bc127 to your computer and use it in GitHub Desktop.
ooxml gridspan example
<?xml version="1.0" encoding="UTF-8"?>
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 wp14">
<w:body>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal" />
<w:rPr />
</w:pPr>
<w:r>
<w:rPr />
</w:r>
</w:p>
<w:tbl>
<w:tblPr>
<w:tblW w:w="9638" w:type="dxa" />
<w:jc w:val="left" />
<w:tblInd w:w="47" w:type="dxa" />
<w:tblBorders>
<w:top w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:left w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:bottom w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:insideH w:val="single" w:sz="2" w:space="0" w:color="000001" />
</w:tblBorders>
<w:tblCellMar>
<w:top w:w="55" w:type="dxa" />
<w:left w:w="45" w:type="dxa" />
<w:bottom w:w="55" w:type="dxa" />
<w:right w:w="55" w:type="dxa" />
</w:tblCellMar>
</w:tblPr>
<w:tblGrid>
<w:gridCol w:w="1927" />
<w:gridCol w:w="1928" />
<w:gridCol w:w="1922" />
<w:gridCol w:w="3" />
<w:gridCol w:w="1924" />
<w:gridCol w:w="4" />
<w:gridCol w:w="1930" />
</w:tblGrid>
<w:tr>
<w:trPr />
<w:tc>
<w:tcPr>
<w:tcW w:w="3855" w:type="dxa" />
<w:gridSpan w:val="2" />
<w:tcBorders>
<w:top w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:left w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:bottom w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:insideH w:val="single" w:sz="2" w:space="0" w:color="000001" />
</w:tcBorders>
<w:shd w:fill="auto" w:val="clear" />
<w:tcMar>
<w:left w:w="45" w:type="dxa" />
</w:tcMar>
</w:tcPr>
<w:p>
<w:pPr>
<w:pStyle w:val="TableContents" />
<w:rPr />
</w:pPr>
<w:r>
<w:rPr />
<w:t>A</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="1925" w:type="dxa" />
<w:gridSpan w:val="2" />
<w:tcBorders>
<w:top w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:left w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:bottom w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:insideH w:val="single" w:sz="2" w:space="0" w:color="000001" />
</w:tcBorders>
<w:shd w:fill="auto" w:val="clear" />
<w:tcMar>
<w:left w:w="45" w:type="dxa" />
</w:tcMar>
</w:tcPr>
<w:p>
<w:pPr>
<w:pStyle w:val="TableContents" />
<w:rPr />
</w:pPr>
<w:r>
<w:rPr />
<w:t>B</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="1928" w:type="dxa" />
<w:gridSpan w:val="2" />
<w:tcBorders>
<w:top w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:left w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:bottom w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:insideH w:val="single" w:sz="2" w:space="0" w:color="000001" />
</w:tcBorders>
<w:shd w:fill="auto" w:val="clear" />
<w:tcMar>
<w:left w:w="45" w:type="dxa" />
</w:tcMar>
</w:tcPr>
<w:p>
<w:pPr>
<w:pStyle w:val="TableContents" />
<w:rPr />
</w:pPr>
<w:r>
<w:rPr />
<w:t>C</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="1930" w:type="dxa" />
<w:tcBorders>
<w:top w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:left w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:bottom w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:right w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:insideH w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:insideV w:val="single" w:sz="2" w:space="0" w:color="000001" />
</w:tcBorders>
<w:shd w:fill="auto" w:val="clear" />
<w:tcMar>
<w:left w:w="45" w:type="dxa" />
</w:tcMar>
</w:tcPr>
<w:p>
<w:pPr>
<w:pStyle w:val="TableContents" />
<w:rPr />
</w:pPr>
<w:r>
<w:rPr />
<w:t>D</w:t>
</w:r>
</w:p>
</w:tc>
</w:tr>
<w:tr>
<w:trPr />
<w:tc>
<w:tcPr>
<w:tcW w:w="1927" w:type="dxa" />
<w:tcBorders>
<w:top w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:left w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:bottom w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:insideH w:val="single" w:sz="2" w:space="0" w:color="000001" />
</w:tcBorders>
<w:shd w:fill="auto" w:val="clear" />
<w:tcMar>
<w:left w:w="45" w:type="dxa" />
</w:tcMar>
</w:tcPr>
<w:p>
<w:pPr>
<w:pStyle w:val="TableContents" />
<w:rPr />
</w:pPr>
<w:r>
<w:rPr />
<w:t>E</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="1928" w:type="dxa" />
<w:tcBorders>
<w:top w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:left w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:bottom w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:insideH w:val="single" w:sz="2" w:space="0" w:color="000001" />
</w:tcBorders>
<w:shd w:fill="auto" w:val="clear" />
<w:tcMar>
<w:left w:w="45" w:type="dxa" />
</w:tcMar>
</w:tcPr>
<w:p>
<w:pPr>
<w:pStyle w:val="TableContents" />
<w:rPr />
</w:pPr>
<w:r>
<w:rPr />
<w:t>F</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="1922" w:type="dxa" />
<w:tcBorders>
<w:top w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:left w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:bottom w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:insideH w:val="single" w:sz="2" w:space="0" w:color="000001" />
</w:tcBorders>
<w:shd w:fill="auto" w:val="clear" />
<w:tcMar>
<w:left w:w="45" w:type="dxa" />
</w:tcMar>
</w:tcPr>
<w:p>
<w:pPr>
<w:pStyle w:val="TableContents" />
<w:rPr />
</w:pPr>
<w:r>
<w:rPr />
<w:t>G</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="1927" w:type="dxa" />
<w:gridSpan w:val="2" />
<w:tcBorders>
<w:top w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:left w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:bottom w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:insideH w:val="single" w:sz="2" w:space="0" w:color="000001" />
</w:tcBorders>
<w:shd w:fill="auto" w:val="clear" />
<w:tcMar>
<w:left w:w="45" w:type="dxa" />
</w:tcMar>
</w:tcPr>
<w:p>
<w:pPr>
<w:pStyle w:val="TableContents" />
<w:jc w:val="left" />
<w:rPr />
</w:pPr>
<w:r>
<w:rPr />
<w:t>H</w:t>
</w:r>
</w:p>
</w:tc>
<w:tc>
<w:tcPr>
<w:tcW w:w="1934" w:type="dxa" />
<w:gridSpan w:val="2" />
<w:tcBorders>
<w:top w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:left w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:bottom w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:right w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:insideH w:val="single" w:sz="2" w:space="0" w:color="000001" />
<w:insideV w:val="single" w:sz="2" w:space="0" w:color="000001" />
</w:tcBorders>
<w:shd w:fill="auto" w:val="clear" />
<w:tcMar>
<w:left w:w="45" w:type="dxa" />
</w:tcMar>
</w:tcPr>
<w:p>
<w:pPr>
<w:pStyle w:val="TableContents" />
<w:rPr />
</w:pPr>
<w:r>
<w:rPr />
<w:t>I</w:t>
</w:r>
</w:p>
</w:tc>
</w:tr>
</w:tbl>
<w:p>
<w:pPr>
<w:pStyle w:val="Normal" />
<w:rPr />
</w:pPr>
<w:r>
<w:rPr />
</w:r>
</w:p>
<w:sectPr>
<w:type w:val="nextPage" />
<w:pgSz w:w="11906" w:h="16838" />
<w:pgMar w:left="1134" w:right="1134" w:header="0" w:top="1134" w:footer="0" w:bottom="1134" w:gutter="0" />
<w:pgNumType w:fmt="decimal" />
<w:formProt w:val="false" />
<w:textDirection w:val="lrTb" />
</w:sectPr>
</w:body>
</w:document>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment