title: jasperreports - exporting word is missing subreport field values but pdf is fine
body: <p>I'm exporting a report (from the JasperPrint object). It contains a subreport. If I export it as a pdf, all is fine. If I export it as word (docx), all the field values in the subreport are blank. Each row in the subreport in the docx is blank, although the correct number of rows are still shown (so the docx exporter does still get the subreport data). Field values in the master report still appear in the docx, just not the subreport. Static text (in the subreport table header row) also still appears in the docx subreport.</p>
  
  <p>This is the same whether I export programatically or using the Save menu in the JRViewer control.</p>
  
  <p>Does anyone have any idea what can cause this? I tried setting the font to be really small as I know Jasper sometimes decides not to render if the text doesn't fit in the box, but this didn't solve the problem.</p>
  
  <p>EDIT</p>
  
  <p>I solved the problem by stepping through the code in JRDocExporter. I was showing a line (JRDesignLine) after each row in the subreport. This line spanned all columns. The JRDocExporter encounters the line before the text in the columns, sees it spans all columns, and as a result decides to skip printing all remaining columns. Removing the line brought back the missing text. This behaviour doesn't occur when exporting to pdf or viewing the report in the JRViewer control, just for docx export...</p>