FlexReport for WPF
FlexReport オブジェクトの分割の管理
FlexReport のセクション > FlexReport オブジェクトの分割の管理

Since creating reports is all about representing data, it is important to determine the sub-section behavior when its too large to fit within the vertical space available on the current page.

FlexReports では、セクションやサブセクションをページ間で分割するかどうかを設定できます。それには、SplitBehavior プロパティを SplitIfNeeded または KeepTogether に設定します。

The KeepTogether option lets the object to be split only if it is too large to fit on an empty page. If that's the case, then the object is split immediately. Otherwise, a new page is started and the object is placed on it without splitting. While, the SplitIfNeeded option lets the object to be split if it does not fit onto the current page.

同様に、フィールドや境界線の分割を SplitHorzBehavior プロパティと SplitVertBehavior プロパティで制御します。 The SplitHorzBehavior property determines how the borders are drawn for an object if it is too wide and split between pages. On the other hand, the SplitVertBehavior property determines how the borders are drawn for an object if it is too high and split between pages.

同様に、フィールドや境界線の分割を SplitHorzBehavior プロパティと SplitVertBehavior プロパティで制御します。

次のコードは、セクションとサブセクションの SplitBehavior を設定します。

C#
コードのコピー
// 必要に応じてセクションを分割できるようにします
c1FlexReport1.Sections.Header.SplitBehavior = SplitBehavior.SplitIfNeeded;
// 必要に応じてサブセクションを分割できるようにします
c1FlexReport1.Sections.Header.SubSections[0].SplitBehavior = SplitBehavior.SplitIfNeeded;