title: format the text style in text field iReport
body: <p>I want to make some text in a text field bold. I visited <a href="http://jasperreports.sourceforge.net/sample.reference/markup/index.html" rel="nofollow noreferrer">http://jasperreports.sourceforge.net/sample.reference/markup/index.html</a> but could not get the desired result. I am using text field right now but when I tried using styled/html, the compilation failed. So can you help me with this jrxml code snippet: </p>
  
  <pre><code>&lt;textField&gt;
      &lt;reportElement x="200" y="10" width="590" height="42"/&gt;
      &lt;textElement markup="styled"/&gt;
      &lt;textFieldExpression&gt;&lt;![CDATA["The static text without any format.\nThe field's data with bold format&lt;style isBold='true'&gt;:" + $F{TASKS_SUBTASK} + "&lt;/style&gt;\n&lt;style isBold='true' isItalic='true' isUnderline='true'&gt;The static underlined text with bold and italic format&lt;/style&gt;"]]&gt;&lt;/textFieldExpression&gt;
  &lt;/textField&gt;
  </code></pre>
  
  <p>In this example: <a href="https://stackoverflow.com/questions/8135215/style-a-text-field-in-jasper">Style a text field in Jasper</a>, the text field expression is wrong for which compilation fails.</p>
  
  <p>Your help will be appreciated.</p>