Welcome to OpenXML Developer Sign in | Join | Help

OLE objects in PresentationML

Last post 07-29-2008, 10:20 AM by Paulo. 1 replies.
Sort Posts: Previous Next
  •  01-08-2008, 12:41 AM 2590

    OLE objects in PresentationML

     
    Hi,
     
    If we place any ole object(word,excel,ppt,adobe acrobat document or image etc) in the PresentationML document, the same will be stored as an image file(
     
    .emf) inside the document part to render.
     
    But, the inserted object will be stored in ppt\embeddings folder (folder name can be changed).
     

    The image of that object will be stored in ppt\media\image1.emf.
     
    The size (width/height) details of the OLE object will be stored in the vmlDrawing1.vml as
     
    <!--represents the shape of the object(ie height,width etc) in the slide-->
     
    <v:shape id="_x0000_s1026" type="#_x0000_t75" style='position:absolute;
      left:120.25pt;top:110pt;width:50.5pt;height:50.125pt' o:bwpure="highContrast"
      o:bwnormal="blackTextAndLines">
     
    <!--rId1 will render to "../media/image1.emf"/-->
      <v:imagedata o:relid="rId1" o:title=""/>
     </v:shape>
     

    In the corresponding slide part, it refers the object to be rendered on the slide.
     
    <p:sld......>
    <p:cSld>
        <p:spTree>
    ----
    <p:graphicFrame>
            <p:nvGraphicFramePr>
              <p:cNvPr id="2" name="Object 1"/>
              <p:cNvGraphicFramePr>
              </p:cNvGraphicFramePr>
              <p:nvPr/>
            </p:nvGraphicFramePr>
     
    <!--p:xfrm represents the position of the object in the corresponding slide-->
            <p:xfrm>
              <a:off x="1527175" y="1397000"/>
              <a:ext cx="6089650" cy="4065588"/>
            </p:xfrm>
     
            <a:graphic>
              <a:graphicData uri="
    http://schemas.openxmlformats.org/presentationml/2006/ole"> 
    <!-- r:id will render to "../embeddings/" " with corresponding file extensions.-->
                <p:oleObj spid="_x0000_s1026" name="Document" r:id="rId3"  progId="Word.Document.12">
                  <p:embed/>
                </p:oleObj>
              </a:graphicData>
            </a:graphic>
          </p:graphicFrame>
        </p:spTree>
      </p:cSld>
    </p:sld>
     
    I  we insert an image,acrobat document and for some other files , these will be stored as bin file.
     
    Mallika
  •  07-29-2008, 10:20 AM 3508 in reply to 2590

    Re: OLE objects in PresentationML

    Hi, I really appriciate your explanation.

    I am triyng to embed an excel table to a presentation programatically. That is in the same way you made the explanation, but the hard part is: How do I generate the vml and the emf files that represent the table?

    Thanks in advance,

    Paulo

View as RSS news feed in XML