none
How to add a new EmbeddedObjectPart or embeddedPackagePart RRS feed

  • Question

  •  

    How do we add a new EmbeddedObjectPart or embeddedPackagePart to docx?

     

     

    AddEmbeddedPackagePart takes a string content. what is that content? And how do I add the appropriate icon and icon text to that embeddedpart?

    Thursday, September 6, 2007 9:03 PM

All replies

  • I could add by

    mainPart.AddEmbeddedObjectPart("application/msword" ) for word doc and

    mainPart.AddEmbeddedPackagePart( "application/vnd.openxmlformats-officedocument.wordprocessingml.document" ); for docx

     

    But how do you want to show them either by icon or a text showing there is embeded data. Right now if I open it is there but I won't be able to distinguish

    Friday, September 7, 2007 2:03 PM
  • This is an old post, but if anyone is search for this, check out the following link:
    http://msdn.microsoft.com/en-ca/library/ee355229.aspx
    Monday, March 8, 2010 9:27 AM