title: MS Word via the COM-object interface to add an image to the substrate / watermark
body: <p>Sorry for the text – this is a translation …</p>
  
  <p>How can I use the COM interface of the MS Word class to set the "Substrate/Background" "Confidential"?
  <a href="https://i.stack.imgur.com/i9Gnb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i9Gnb.png" alt="enter image description here"></a></p>
  
  <p>In many forums, the examples use the example of adding to the header:</p>
  
  <pre><code>$doc = $word.Documents.Open("doc.docx")
  $doc.Sections[1].Headers[1].Shapes.AddPicture("sec.png")
  </code></pre>
  
  <p>But I want to add the background to the body of the entire document. Similar to Excel, which has a function:</p>
  
  <pre><code>$worksheet.SetBackgroundPicture("sec.png")
  </code></pre>
  
  <p>It seems to me that in Word, the property is responsible for this _Document.Background (maybe I'm wrong <a href="https://docs.microsoft.com/ru-ru/dotnet/api/microsoft.office.interop.word._document.background" rel="nofollow noreferrer">https://docs.microsoft.com/ru-ru/dotnet/api/microsoft.office.interop.word._document.background</a>) but I can't do how to replace the Shape object type …</p>