title: Adding HTML to Word using OpenXML but unable to style the content (.Net Core)
body: <p>I managed to add HTML (text only) to a Word-document following this post <a href="https://stackoverflow.com/questions/18089921/add-html-string-to-openxml-docx-document">Add HTML String to OpenXML</a>, using an already existing Word-file.</p>
  
  <p>Unfortunately, I can't find any solution to use style from this Word-template for my newly added text. It is always "Times New Roman" size 12px although the standard style of the used template is "Arial" size 9px. </p>
  
  <p>So fare I tried: </p>
  
  <ol>
  <li>Using the ParagraphProperties as I would do for not HTML texts.</li>
  </ol>
  
  <pre><code> Paragraph para = body.AppendChild(new Paragraph());
   Run run = para.AppendChild(new Run());
   run.AppendChild(altChunk);                           
   para.ParagraphProperties = new ParagraphProperties(new ParagraphStyleId() { Val = "berschrift2" });
  </code></pre>
  
  <ol start="2">
  <li>Turnig MatchSource off</li>
  </ol>
  
  <pre><code> AltChunkProperties altChunkProperties = new AltChunkProperties();
   altChunkProperties.MatchSource = new MatchSource() { Val = new OnOffValue(false) };
   altChunk.AppendChild&lt;AltChunkProperties&gt;(altChunkProperties);
  </code></pre>
  
  <p>Any suggestions?</p>
  
  <p><strong>EDIT</strong>:
  I found a workaround, which isn´t really a solution for my question, but works for me. I'm no longer trying to use the style from word, but adding the styles to my html before using altchunk. </p>