Jun 14, 2012 at 3:42 PM
Edited Jun 14, 2012 at 3:43 PM
I am trying to insert a System.Drawings.Bitmap into my Document.
What i do with the Bitmap is:
MemoryStream ms = new MemoryStream();
Image img1 = doc.AddImage(ms);
Picture pic1 = img1.CreatePicture();
I get an argumentException when running the InsertPicture().
at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData)
at System.Drawing.Image.FromStream(Stream stream)
at Novacode.Paragraph.CreatePicture(DocX document, String id, String name, String descr)
If someone had this issue before, id gladly like to find out what im supposed to do to insert a picture. Thank you =)
EDIT: I have saved the Bitmap into a file, and the picture i wanted was the expected one.