How to print on a previous page

How to print on a previous page

Postby Robert Frank » Tue May 24, 2011 9:19 pm

I have code like it:
Code: Select all  Expand view
 
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
User avatar
Robert Frank
 
Posts: 95
Joined: Fri Nov 23, 2007 4:43 am
Location: Gdynia-Poland

Re: How to print on a previous page

Postby Carles » Wed May 25, 2011 2: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
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1134
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Re: How to print on a previous page

Postby driessen » Wed May 25, 2011 7: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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: How to print on a previous page

Postby Robert Frank » 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: Select all  Expand view

oPrn:ImportWMF( aFicheros[ x ], .F. )
 

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

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

Re: How to print on a previous page

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 57 guests