title: How to show a title on each page of the report dynamically created reportviewer
body: <p>I create the report dynamically, i e, I have no way to open a designer RDLC and fix it. I create a table and fill it through the dataset. Getting XML file and export it to PDF file. But even if I write</p>
  
  <pre><code>string deviceInfo =
  "&lt;DeviceInfo&gt;" +
  " &lt;OutputFormat&gt;PDF&lt;/OutputFormat&gt;" +
  " &lt;PageWidth&gt;11in&lt;/PageWidth&gt;" +
  " &lt;PageHeight&gt;8.5.0in&lt;/PageHeight&gt;" +
  " &lt;MarginTop&gt;0.05in&lt;/MarginTop&gt;" +
  " &lt;MarginLeft&gt;0.05in&lt;/MarginLeft&gt;" +
  " &lt;MarginRight&gt;0.05in&lt;/MarginRight&gt;" +
  " &lt;MarginBottom&gt;0.05in&lt;/MarginBottom&gt;" +
  
  " &lt;KeepWithGroup&gt;After&lt;/KeepWithGroup&gt;" +
  " &lt;RepeatOnNewPage&gt;true&lt;/RepeatOnNewPage&gt;" + 
  " &lt;FixedData&gt;true&lt;/FixedData&gt;"+
   " &lt;RepeatHeaderOnNewPage&gt;true&lt;/RepeatHeaderOnNewPage&gt;" +
  "&lt;/DeviceInfo&gt;";
  try
  {
   byte[] bytes = reportViewer1.LocalReport.Render(
   "PDF", deviceInfo, out mimeType, out encoding, out filenameExtension,
   out streamids, out warnings);
  
   using (FileStream fs = new FileStream(filename, FileMode.Create))
   {
   fs.Write(bytes, 0, bytes.Length);
   fs.Close();
   }
   return filename;
   }
   //....
  </code></pre>
  
  <p>I see the title only on 1 page Help solve the problem! Thanks!</p>