How I add image in powerpoint with OpenXML C#?
Anyone have an example of how to insert image in a certain position and size? And how to edit a text box to position and size?
Here is what I have so far:
using (FileStream stream = new FileStream(@"c:/img.jpg", FileMode.Open, FileAccess.Read))
{
var image = Image.FromStream(stream);
ImagePart imagePart = slidePart.AddImagePart(ImagePartType.Png, "rId3");
imagePart.FeedData(stream);
}
using (FileStream stream = new FileStream(@"c:/img.jpg", FileMode.Open, FileAccess.Read)) { var image = Image.FromStream(stream); ImagePart imagePart = slidePart.AddImagePart(ImagePartType.Png, "rId3"); imagePart.FeedData(stream); }
But not working – Mr D