{PAGE} and {NUMPAGES} dont work

Apr 29, 2012 at 6:49 PM

Ip have this code:

// report footer
$paraStyle = array('align' => 'center');
$testVariable = 'Imp.02|DAS.CMRB     ';
$footer = $section->createFooter();
$footer->addPreserveText( $testVariable.'{ DATE \@"d, MMMM yyyy" }               {PAGE}', null, $paraStyle );

and obtain

Page $this->page of $this->numpages

why?