Where is the image part after add?
I know the part gets added as the file size increases, but opening the document I can't locate it. I'm sure it's something stupid I'm overlloking. Any help appreciated...
public
void AddImagePart(){
try{
string document = @"c:\1.docx";string fileName =@"C:\website\images\meetingworkspace2.gif";using (WordprocessingDocument wordDoc =WordprocessingDocument.Open(document,true)){
MainDocumentPart mainPart = wordDoc.MainDocumentPart;ImagePart imagePart = mainPart.AddImagePart(ImagePartType.Gif);using (FileStream stream =newFileStream(fileName,FileMode.Open)){
imagePart.FeedData(stream);
}
}
MessageBox.Show("Done");}
catch (Exception ex){
MessageBox.Show(ex.Message);}
}

