Page Numbers in RTE Footers
\The Sandbox \PB History & Future \New in PB 10.5 \New in PowerBuilder 10.5.1 \Page Numbers in RTE Footers
EAServer 6.0
PB App Server
Plug-in
JDK 1.5
Headers for
.NET Web Services
Spell Checking
in Rich Text
Page Numbers in
RTE Footers
Button Background
Color on XP
DB Connectivity
Changes

The following script inserts the current page number in the footer of a document in a rich text control, then returns the focus to the body of the document:

    rte_1.ShowHeadFoot(true,false)
    rte_1.SetAlignment ( Center! )
    rte_1.InputFieldInsert("PAGENO")
    rte_1.ShowHeadFoot(false,false)

The PAGENO reserved word allows you to add the page number in headers and footers. In earlier versions of PowerBuilder, you could call SelectedPage in the PrintHeader or PrintFooter event, but these events are now obsolete.

PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com