title: Office.Interop.Word: How to add a picture to document without getting compressed
body: <p>How can I add a picture to a word document without loosing quality using the <code>Microsoft.Office.Interop.Word</code> assembly?</p>
  
  <p>The common way to insert a picture to word document is:</p>
  
  <pre><code>Application wordApp = new Application();
  Document wordDoc = wordApp.Documents.Add();
  Range docRange = wordDoc.Range();
  
  string imageName = @"c:\temp\win10.jpg";
  InlineShape pictureShape = docRange.InlineShapes.AddPicture(imageName);
  
  wordDoc.SaveAs2(@"c:\temp\test.docx");
  wordApp.Quit();
  </code></pre>
  
  <p>This way compresses the picture.</p>
  
  <p>There are optional <code>LinkToFile</code> and <code>SaveWithDocument</code> parameters but the saved image is compressed and a link is not wanted because picture file mustn't exist externally.</p>
  
  <p>For Excel there is the <a href="https://docs.microsoft.com/en-us/office/vba/api/excel.shapes.addpicture2" rel="nofollow noreferrer"><code>Shapes.AddPicture2</code> Method</a> with <code>MsoPictureCompress</code> parameter which seems to be for this. But I cannot find any equivalent for Word.</p>