Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

PageCount – PB Docs 2017 – PowerBuilder Library

PageCount – PB Docs 2017

PageCount

PowerScript function

Description

Returns the total number of pages in the document in a RichTextEdit
control.

Applies to

RichTextEdit controls

Syntax

Argument

Description

rtename

The name of the RichTextEdit control in which you
want the page count

Return value

Integer. Returns the number of pages in the RichTextEdit control.
Returns 1 if the control contains no text and -1 if an error
occurs.

Usage

The number of pages in the document is determined by the amount of
text and the layout specifications, such as page size, margins, font size,
and so on.

When the RichTextEdit control shares data with a DataWindow, there
is an instance of the document for each row of the DataWindow.
PageCount reports the page count of a single instance. Multiply the value
of the DataWindow’s RowCount function by the page count to get the total
number of pages.

Examples

This example displays the number of pages in the document in the
RichTextEdit rte_1 as the text of the StaticText st_status:

See also

LineCount

LineLength

RowCount method for DataWindows in the section called “RowCount” in DataWindow Reference.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x