title: How do I copy the content to new Word Document and replace the text in new Document
body: <p>I am trying to read all text in word document, translated it and and Open in new document with translated text. I already copied the content to new document, How do I translate the current text by range and insert translate text in to correct range ?</p>
  <p>Here what I am trying to implement.</p>
  <pre><code>    //Create new document
      var wordApp = new Microsoft.Office.Interop.Word.Application();
      try
      {
         Document translatedDoc = wordApp.Documents.Add();
  
         //Get content from existing doc
          var doc = Globals.ThisAddIn.Application.ActiveDocument;
          Range oRange = doc.Content;
  
  
          //paste to new documnent
          translatedDoc.Content.PasteSpecial(DataType: WdPasteOptions.wdKeepSourceFormatting);
  
          var paragraphs = doc.Paragraphs;
          foreach (Paragraph paragraph in paragraphs)
          {
              Range rng = paragraph.Range;
              string pText = paragraph.Range.Text;
  
              var translated = DocSentenseTranslate(pText);
  
              //How do i replace the translated text ?
                      
              Marshal.ReleaseComObject(rng);
         }
  
       wordApp.Visible = true;
    }
    catch (Exception)
    {
       throw;
    }
  </code></pre>