Skip to Content
0
Former Member
Jun 03, 2013 at 10:11 AM

Technical Query: Printing Page Numbers in Footer of RTF Control issue

136 Views

I am facing the issue while Printing Page numbers in footer of RichTextEdit Control.

Code inserted in richText control to insert page numbers in footer as follows

rte_1.ShowHeadFoot(true,false)

rte_1.SetAlignment ( center! )

rte_1.InputFieldInsert("PAGENO")

rte_1.InputFieldChangeData("PAGENO"," Page "+string(rte_1.selectedPage())+ " Of " +string(rte_1.PageCount()) )

rte_1.ShowHeadFoot(false,false)

Powerbuilder Version used: Powerbuilder 10.5.1 EBF build 6627

List of Fixes for EBF 14592 mentions the Print Footer issue is rectified.

14592 433830 Customer migrated his application to PB 10.5. In

PB 10.5 PrinterFooter events of RTE control are

obsolete. He has coded the printfooter event for

adding page information. He wants to know now that

printfooter event is obsolete, how he should print

page number in RTE? It is possible to get the

information in the footer, but only for the

current page. So depending on when the function is

called, you will get, for example "page 1 of 3" on

all pages of the document.