How to print on a previous page

Post Reply
User avatar
Robert Frank
Posts: 95
Joined: Fri Nov 23, 2007 4:43 am
Location: Gdynia-Poland
Contact:

How to print on a previous page

Post 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
Robert Frank
User avatar
Carles
Posts: 937
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona
Contact:

Re: How to print on a previous page

Post by Carles »

Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

https://modharbour.app
https://modharbour.app/compass
https://forum.modharbour.app
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: How to print on a previous page

Post 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.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
User avatar
Robert Frank
Posts: 95
Joined: Fri Nov 23, 2007 4:43 am
Location: Gdynia-Poland
Contact:

Re: How to print on a previous page

Post 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
Robert Frank
Davide
Posts: 190
Joined: Tue Mar 14, 2006 1:59 am
Location: Italy

Re: How to print on a previous page

Post 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
Post Reply