How to show headers in each page of the report in Microsoft Report Viewer

后端 未结 6 1034
耶瑟儿~
耶瑟儿~ 2021-02-01 19:49

I am trying to create some reports, and I want to show the headers in each page of the reports. I create a table and the uppermost row becomes my header, but it is only shown fo

6条回答
  •  说谎
    说谎 (楼主)
    2021-02-01 20:40

    I am creating a dynamic table - report. I can not group the rows. When I export the XML file to PDF, I'm writing

    //......
    string deviceInfo =
    " PDF" +
    " 11in" +
    " 8.5.0in" +
    " 0.05in" +
    " 0.05in" +
    " 0.05in" +
    " 0.05in" +
    
    " After" +
    " true" + 
    " true"+
    " true" +
    ""; 
    try
    {
    byte[] bytes = reportViewer1.LocalReport.Render(
    "PDF", deviceInfo, out mimeType, out encoding, out filenameExtension,   //horizontal page
    out streamids, out warnings);
    using (FileStream fs = new FileStream(filename, FileMode.Create))
    {
    fs.Write(bytes, 0, bytes.Length);
    fs.Close();
    }
     return filename;
    }
    //....
    

    , but the title can only see on a 1 page. What should I write in order to see the header on each page?

提交回复
热议问题