Hi!
I can’t figure out how to make inserted images display at 100% of their original size.
The following code produces 3 different image sizes in word even though they have the exact same size in pixels (320*426).
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
System.Drawing.Image imageGif = System.Drawing.Image.FromFile(Server.MapPath("/") + "test.gif");
System.Drawing.Image imageJpg = System.Drawing.Image.FromFile(Server.MapPath("/") + "test.jpg");
System.Drawing.Image imageJpg2 = System.Drawing.Image.FromFile(Server.MapPath("/") + "test2.jpg");
builder.InsertImage(imageGif);
builder.InsertImage(imageJpg);
builder.InsertImage(imageJpg2);
test.gif gets correct size, test.jpg is too large and test2.jpg is too small.
I have attached the images and resulting word doc.
Thanks, Anders