FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to print on a previous page
Posts: 95
Joined: Fri Nov 23, 2007 04:43 AM
How to print on a previous page
Posted: Tue May 24, 2011 09:19 PM
I have code like it:
Code (fw): Select all Collapse
 
Function TEST()
Local nPAGE:=0
oPRN:=PrintBegin....
Page
   nPage++
EndPage
Page
   nPage++
EndPage
// POINTOFQUESTION
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
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: How to print on a previous page
Posted: Wed May 25, 2011 02:04 PM
Salutacions, saludos, regards

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

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: How to print on a previous page
Posted: Wed May 25, 2011 07:34 PM

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. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 95
Joined: Fri Nov 23, 2007 04:43 AM
Re: How to print on a previous page
Posted: Thu May 26, 2011 10:35 PM
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 (fw): Select all Collapse
oPrn:ImportWMF( aFicheros[ x ], .F. )

I'm going to wait for another idea but is it exist?

Robert
Robert Frank
Posts: 190
Joined: Tue Mar 14, 2006 01:59 AM
Re: How to print on a previous page
Posted: Thu May 26, 2011 11:15 PM
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

Continue the discussion