共用方式為


ReportPageSettings.PaperSize 屬性

代表報表頁面的紙張大小設定。唯讀。

命名空間:  Microsoft.Reporting.WebForms
組件:  Microsoft.ReportViewer.WebForms (在 Microsoft.ReportViewer.WebForms.dll 中)

語法

'宣告
Public ReadOnly Property PaperSize As PaperSize
    Get
'用途
Dim instance As ReportPageSettings
Dim value As PaperSize

value = instance.PaperSize
public PaperSize PaperSize { get; }
public:
property PaperSize^ PaperSize {
    PaperSize^ get ();
}
member PaperSize : PaperSize
function get PaperSize () : PaperSize

屬性值

型別:System.Drawing.Printing.PaperSize
包含報表頁面大小資訊的唯讀 PaperSize 物件。

備註

在傳回的 PaperSize 物件中,Width 屬性永遠小於或等於 Height 屬性。若要確認報表頁面的方向,請使用 IsLandscape

請參閱

參考

ReportPageSettings 類別

Microsoft.Reporting.WebForms 命名空間