DevExpress での一覧、帳票等のレポート(ASPxWebDocumentViewer)のページ情報(XRPageInfo)のフォーマット設定のサンプルです。
現状の画面デザインはこのようになっています。
<レポートのページ情報のフォーマット設定>
「XrPageInfo1」オブジェクトを選択します。
「XrPageInfo1」のプロパティから「Me.XrPageInfo1.TextFormatString = “{0}頁目/全{1}頁”」を設定します。
【サンプルプログラム(VB.Net)】
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
' 'XrPageInfo1 ' Me.XrPageInfo1.Font = New System.Drawing.Font("Arial", 18.0!) Me.XrPageInfo1.ForeColor = System.Drawing.Color.Blue Me.XrPageInfo1.LocationFloat = New DevExpress.Utils.PointFloat(0!, 16.0!) Me.XrPageInfo1.Name = "XrPageInfo1" Me.XrPageInfo1.Padding = New DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100.0!) Me.XrPageInfo1.SizeF = New System.Drawing.SizeF(200.0!, 35.0!) Me.XrPageInfo1.StylePriority.UseFont = False Me.XrPageInfo1.StylePriority.UseForeColor = False Me.XrPageInfo1.StylePriority.UseTextAlignment = False Me.XrPageInfo1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight Me.XrPageInfo1.TextFormatString = "{0}頁目/全{1}頁" |
それでは、実行して動作確認を行います。
↓
無事、一覧、帳票等のレポート(ASPxWebDocumentViewer)のページ情報(XRPageInfo)のフォーマット設定が出来ました。