Page 1 of 1

How to print on a previous page

Posted: Tue May 24, 2011 9:19 pm
by Robert Frank
I have code like it:

Code: Select all

 
Function TEST()
Local nPAGE:=0
oPRN:=PrintBegin....
Page
   nPage++
EndPage
Page
   nPage++
EndPage
// [color=#BF0000]POINTOFQUESTION[/color]
EndPrint
Return .T.
 
The point is - how in place signed // POINTOFQUESTION print something on page number one?
I want to place information page X of Y, but Y I know on the end of my print.

Any idea?

Robert

Re: How to print on a previous page

Posted: Wed May 25, 2011 2:04 pm
by Carles

Re: How to print on a previous page

Posted: Wed May 25, 2011 7:34 pm
by driessen
Carles,

Very nice of you to give us the link to another topic.

Unfortunately, I don't understand a single word of Spanish.

Translation ?

Thanks.

Re: How to print on a previous page

Posted: Thu May 26, 2011 10:35 pm
by Robert Frank
I have problems with read in Spanish too, but if I good understood point is that you have to use WMF file to put number of page.

Code: Select all

oPrn:ImportWMF( aFicheros[ x ], .F. )
 
I'm going to wait for another idea but is it exist?

Robert

Re: How to print on a previous page

Posted: Thu May 26, 2011 11:15 pm
by Davide
Robert,
Robert Frank wrote:I have problems with read in Spanish too, but if I good understood point is that you have to use WMF file to put number of page.
not exactly. Tprinter itself creates an EMF for each page. Their names are in ::aMeta
The technique in that post, after creating the EMF's, loops them and adds the page number at the bottom (after ImportWMF(): oPrn:Say)

Hi,
Davide