title: How to get rid of my "After Spacing" on open xml
body: <p>In open XML my word document defaults to having "Spacing After: 10 pt" How would I change it to 0, so there is no spacing. <br><br>
  Here is my code, which pretty much grabs the information from a database and places it onto a word document to be able to print out. But the spacing is making the document too big.</p>
  
  <pre><code>using (WordprocessingDocument wordDoc = WordprocessingDocument.Create(filepath,  WordprocessingDocumentType.Document)) {
      MainDocumentPart mainPart = wordDoc.AddMainDocumentPart();
      mainPart.Document = new Document();
      Body body = mainPart.Document.AppendChild(new Body());
  
      Paragraph para_main = body.AppendChild(new Paragraph());
      Run run_main = para_main.AppendChild(new Run());
  
      // Goes through all of the forms
      foreach (var form in forms) {
          Table table = new Table();
          // Initialize all of the table properties
          TableProperties tblProp = new TableProperties(
              new TableBorders(
                  new TopBorder() { Val = new EnumValue&lt;BorderValues&gt;(BorderValues.BasicBlackSquares), Size = 16 },
                  new LeftBorder() { Val = new EnumValue&lt;BorderValues&gt;(BorderValues.BasicBlackSquares), Size = 16 },
                  new RightBorder() { Val = new EnumValue&lt;BorderValues&gt;(BorderValues.BasicBlackSquares), Size = 16 },
                  new BottomBorder() { Val = new EnumValue&lt;BorderValues&gt;(BorderValues.BasicBlackSquares), Size = 16 },
                  new InsideHorizontalBorder() { Val = new EnumValue&lt;BorderValues&gt;(BorderValues.BasicBlackSquares), Size = 8 },
                  new InsideVerticalBorder() { Val = new EnumValue&lt;BorderValues&gt;(BorderValues.BasicBlackSquares), Size = 8 }
              ),
              new SpacingBetweenLines() { Before = "20", After = "20" }
              //new TableCellProperties(
              //    new 
              //new TableJustification() {Val = TableRowAlignmentValues.Center}
          );
  
          table.AppendChild&lt;TableProperties&gt;(tblProp);
  
          Paragraph para_header = body.AppendChild(new Paragraph());
          Run run_header = para_header.AppendChild(new Run());
          RunProperties runProps = run_header.AppendChild(new RunProperties(new Bold()));
  
          string username = form.Username;
          string proces_header = form.HeaderTitle;
  
          run_header.AppendChild(new Text(proces_header + " | " + username));
  
          for (int i = 0; i &lt; form.FieldList.Count; i++) {
              if (!(form.FieldList[i].Token == "USR" || form.FieldList[i].Token == "SNT")) {
                  TableRow tr = new TableRow();
                  TableCell header_cell = new TableCell();
                  header_cell.Append(new Paragraph(new Run(new Text(form.FieldList[i].Label))));
                  TableCell value_cell = new TableCell();
                  value_cell.Append(new Paragraph(new Run(new Text(form.FieldList[i].Value))));
                  tr.Append(header_cell, value_cell);
                  table.Append(tr);
              }
          }
          wordDoc.MainDocumentPart.Document.Body.Append(table);
      }
      mainPart.Document.Save();
      wordDoc.Close();
      return "Success";
  }
  </code></pre>