public static void AddImagePart(string document, string fileName){ using (WordprocessingDocument wordDoc = WordprocessingDocument.Open(document, true)) { MainDocumentPart mainPart = wordDoc.MainDocumentPart; ImagePart imagePart = mainPart.AddImagePart(ImagePartType.Jpeg); using (FileStream stream = new FileStream(fileName, FileMode.Open)) { imagePart.FeedData(stream); } }}
btw, DocumentReflector tool is a good tool to help you generate Open XML format documents using SDK:)
Thank you so much...i got it..Document reflector is very useful