We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
here is my code Image img = doc.AddImage(@".\images\test.jpg"); Picture pic = img.CreatePicture(); pic.Height = 100; pic.Width = 200; Paragraph p = doc.InsertParagraph("", false); pic.SetPictureShape(RectangleShapes.rect); p.InsertPicture(pic);
doc.SaveAs($"{path}\\src\\newDoc.docx");
when executed the document is saved and the image is placed on the bottom but it is a blank image.
The text was updated successfully, but these errors were encountered:
Seems fine to me. I've created a sample for you. Also committed it to sources.
http://evotec.pl/docx-add-image-to-microsoft-word-document-programmatically/
Sorry, something went wrong.
No branches or pull requests
here is my code
Image img = doc.AddImage(@".\images\test.jpg");
Picture pic = img.CreatePicture();
pic.Height = 100;
pic.Width = 200;
Paragraph p = doc.InsertParagraph("", false);
pic.SetPictureShape(RectangleShapes.rect);
p.InsertPicture(pic);
when executed the document is saved and the image is placed on the bottom but it is a blank image.
The text was updated successfully, but these errors were encountered: