L.7.2.3.1 Embeddings In Line With Text

When the embedding is present in line with text, it is stored as follows:

The WordprocessingML object element specifies the presence of an embedded object in line with text. The child objectEmbed or objectLink element must specify the details about the embedding itself, including an explicit relationship to the appropriate Embedded Package or Embedded Object part. The child inline element must specify the image which can be used to represent the object.

For example, if we embed a SpreadsheetML worksheet in a WordprocessingML document, the following run content would be present:

<w:r>
  <w:object w:dxaOrig="7247" w:dyaOrig="2920">
    <w:objectEmbed drawAspect="content" r:id="rId7" progId="Excel.Sheet.8"
      shapeId="10"/>
    <w:drawing>
      <wp:inline> ... </wp:inline>
    </w:drawing>
  </w:object>
</w:r>

If we examine this markup, it can be seen that:

We have an inline embedded object, as defined by the object element. The objectEmbed element specifies that that object is stored as an embedding, and that its ProgID is Excel.Sheet.8 (the ProgID code for Microsoft Excel worksheets); it also specifies that the associated image (when the object data cannot be used) is stored in the shape with an ID of 10. The associated shape with an ID of _x0000_i1026 must be used in place of the object whenever it is not loaded - this shape is stored in the inline element in the same object element as the objectEmbed element. This shape specifies its desired size and provides an explicit relationship to the part that stores the image data.

Last updated on