title: How can I programmatically delete a line from a Word document using c#?
body: <p>I have some code to find and replace fields in a word document with values from a dataset.</p>
  
  <pre><code>Word.Document oWordDoc = new Word.Document();  
  foreach (Word.Field mergeField in oWordDoc.Fields)  
  {  
     mergeField.Select();  
     oWord.Selection.TypeText( stringValueFromDataSet );  
  }
  </code></pre>
  
  <p>In some cases <code>stringValueFromDataSet</code> is empty, and in addition to inserting nothing, I want to actually delete the current line.</p>
  
  <p>Any idea how I can do this?</p>