0

I use the following code to add a Picture but i dont adjust image size

var myImageFullPath = "ex.jpg";

using (DocX document = DocX.Create("ex.docx"))
{
    Image image = document.AddImage(myImageFullPath);
    Picture picture = image.CreatePicture();
    Paragraph title = document.InsertParagraph().Append("TEST");
    title.Alignment = Alignment.center;        
    Paragraph p1 = document.InsertParagraph();
    p1.AppendPicture(picture);                
    document.Save();
}
Stefan Becker
  • 5,695
  • 9
  • 20
  • 30
  • This [post](https://stackoverflow.com/questions/8483471/how-to-change-the-size-of-a-picture-after-inserting-it-into-a-word-document/8483620) might help you to adjust image size... – SerkanOzvatan Feb 28 '19 at 08:18

1 Answers1

0

SOLVED THX Picture picture = image.CreatePicture(400,600);