Home Forums WinForms controls Xceed Grid for WinForms Single Row Reports

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #15473 |

    What would be the best way to create a report which uses a new page for each row in the grid ?
    Any help guidance would be greatly appreciated

    Imported from legacy forums. Posted by Bunts (had 1771 views)

    User (Old forums)
    Member
    Post count: 23064

    The only solution we see for this is to create a group for every DataRow, which groups do not have a GroupManagerRow, and set the PageBreak property on the GroupReportStyle.

    e.g.:
    <code>
    private void Form1_Load( object sender, EventArgs e )
    {
    Group group1 = new Group( “CategoryID” );
    group1.ReportStyle.PageBreak = PageBreak.After;
    group1.HeaderRows.Clear();
    group1.SideMargin.Visible = false;
    gridControl1.GroupTemplates.Add( group1 );
    }

    private void winButton1_Click( object sender, EventArgs e )
    {
    Report report = new Report( gridControl1 );
    report.PrintPreview( );
    }
    }
    </code>

    Imported from legacy forums. Posted by André (had 2984 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.