FlowDocument Force a PageBreak (BreakPageBefore)

后端 未结 1 866
野的像风
野的像风 2021-02-14 17:55

I\'m using C# to create a FlowDocument and fill it with data within a table.

Example:

FlowDocument flowDoc = new FlowDocument();
Table          


        
1条回答
  •  梦如初夏
    2021-02-14 18:53

    If I understand right you want to do this:

    Section section = new Section();
    section.BreakPageBefore = true;
    section.Blocks.Add(table1);
    flowDoc.Blocks.Add(section);
    

    If you want to break within a table i suggest it would be better to make a new table.

    0 讨论(0)
提交回复
热议问题