다음을 통해 공유


ReportViewer.PageCountMode 속성

보고서 영역에서 보고서를 렌더링할 때 사용할 기본 페이지 수 모드를 나타내는 PageCountMode 열거형 값을 가져오거나 설정합니다.

네임스페이스:  Microsoft.Reporting.WebForms
어셈블리:  Microsoft.ReportViewer.WebForms(Microsoft.ReportViewer.WebForms.dll)

구문

‘선언
<WebBrowsableAttribute(True)> _
Public Property PageCountMode As PageCountMode
    Get
    Set
‘사용 방법
Dim instance As ReportViewer
Dim value As PageCountMode

value = instance.PageCountMode

instance.PageCountMode = value
[WebBrowsableAttribute(true)]
public PageCountMode PageCountMode { get; set; }
[WebBrowsableAttribute(true)]
public:
property PageCountMode PageCountMode {
    PageCountMode get ();
    void set (PageCountMode value);
}
[<WebBrowsableAttribute(true)>]
member PageCountMode : PageCountMode with get, set
function get PageCountMode () : PageCountMode
function set PageCountMode (value : PageCountMode)

속성 값

유형: Microsoft.Reporting.WebForms.PageCountMode
PageCountMode 열거형 값. 기본값은 Estimate입니다.

주의

PageCountMode를 설정하여 보고서 영역에서 보고서를 렌더링할 때 총 페이지 수를 계산하는 방법을 제어할 수 있습니다. PageCountMode가 Actual이면 ReportViewer 컨트롤이 도구 모음에 실제 총 페이지 수를 표시합니다. PageCountMode가 Estimate이면 ReportViewer 컨트롤이 보고서에 따라 실제 총 페이지 수나 예상 총 페이지 수를 계산할 수 있습니다. 계산된 값이 예상 총 페이지 수이면 도구 모음에서 예상 표시기가 뒤에 표시되며 사용자가 보고서 페이지를 탐색할 때 표시된 값이 변경될 수 있습니다.

참고

예상 페이지 수를 사용하면 보고서를 렌더링할 때 ReportViewer 컨트롤의 성능을 높일 수 있습니다.

참고 항목

참조

ReportViewer 클래스

Microsoft.Reporting.WebForms 네임스페이스