Reports for WinForms
ページレイアウトを途中で変更する

RenderObject.LayoutChangeAfterプロパティにLayoutChangeNewPageオブジェクトを設定します。

実行例


サンプルコード(VB)
コードのコピー
' テキストの後に改ページを挿入してページレイアウトを変更します。
Dim lc = New LayoutChangeNewPage()
lc.PageLayout = New PageLayout()
lc.PageLayout.PageSettings = New C1PageSettings()
lc.PageLayout.PageSettings.Landscape = True
texts(0).LayoutChangeAfter = lc
texts(1).Text = "ページレイアウトを変更"
サンプルコード(C#)
コードのコピー
// テキストの後に改ページを挿入してページレイアウトを変更します。
var lc = new LayoutChangeNewPage();
lc.PageLayout = new PageLayout();
lc.PageLayout.PageSettings = new C1PageSettings();
lc.PageLayout.PageSettings.Landscape = true;
texts[0].LayoutChangeAfter = lc;
texts[1].Text = "ページレイアウトを変更";
関連トピック