none
How does o:OLEObject ProgID= work?

    Pergunta

  • Hi all;

    In a DOCX file I have an embedded spreadsheet. The link for it is:

    <o:OLEObject Type="Embed" ProgID="Excel.Sheet.12" ShapeID="_x0000_i1025" DrawAspect="Content" ObjectID="_1386657673"/>
    

    How do I know what spreadsheet to get for that object? Note that there is no r:id=.

    thanks - dave


    The Programming Olympics - Code Wars
    • Editado DavidThi808 quinta-feira, 29 de dezembro de 2011 18:03
    quinta-feira, 29 de dezembro de 2011 17:44

Respostas

  • Sorry this took so long to get back to Dave.  I've discovered that if you have more than one embedding, Word will use the relid mechanism like:

           <o:OLEObject Type="Embed" ProgID="Excel.SheetBinaryMacroEnabled.12" ShapeID="_x0000_i1026" DrawAspect="Content" ObjectID="_1388223847" r:id="rId6"/>
    


    But if you have only one embedding, it assumes that it's the only embedding part in the package, i.e. ...\word\embeddings\Microsoft_Excel_97-2003_Worksheet1.xls

    Make sense?

    Tom 

    • Marcado como Resposta DavidThi808 segunda-feira, 16 de janeiro de 2012 23:31
    segunda-feira, 16 de janeiro de 2012 18:06

Todas as Respostas