Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

strange page totals

Status
Not open for further replies.

finglem

Technical User
Nov 14, 2003
66
GB
Hi folks.

My VFP 8 reports are doing some weird things with the page totals.
Sometimes the final page prints "Page 10 of 10" (correct)
Sometimes it's "Page 9 0f 10"
sometimes it's "page 10 of 11"

Has anybody ever come across this before?



 

Are you using some special expression for the page number or just _PAGENO? Does it print other page numbers correctly?
 
Stella

The expresion I've got is

"Page "+Trans(_Pageno)+" of "+Trans(_pagetotal)

taken from the help guide
 
_pagetotal?

I don't have this in VFP6. Seems like VFP8 variable, not your own, right?

So what about 8 or 9 previous pages? What do you get on them? Is it correct? Did you check youn report in preview? Do you have an empty extra page or something to that effect?
 
Stella

_pagetotal is a system variable introduced in VFP8

I think the problem I have may be down to the software we use to print to 'preview' as the report seems to print OK to a printer.

Just tested the preview software again and got "page 14 of 12" so I think I'll start looking down that road next.
Thanks
 

software we use to print to 'preview'
What do you mean? Do you use some other software, besides VFP and your own program with REPORT FORM in it?

And you don't want to elaborate on what's printing on the few starting pages.
 
Stella

The page numbers print fine up until the last page but it seems that XFRX (the software we are using to 'preview') cannot seem to understand the _pagetotal variable.

The _pageno is always correct but the _pagetotal is sometimes wrong.

It works ok when you print to a printer but not when you print to preview.

From my understanding (I am not a company programmer, I design peoples Invoices, delivery notes etc)
but in the click event of the 'Print Invoice' etc buttonms that we have in our program, the code calls the xfrx class that in turn opens adobe acrobat in order for our customers to be able to view their Invoices as PDF files and email them to their clients.

It is my opinion that the problem I am having is something to do with this. I can't be sure of course but I can't think of anything else that I personally can do to try to come up with a workaround.

I do appreciate your input though.

Regards
 

XFRX (the software we are using to 'preview')

You should have started with this, don't you think?
If you want to get help, you should begin with providing sufficient information about your problem, not get it dragged out of you piece by piece for several days in a row!

Sorry, I have never used XFRX.
 
'From my understanding (I am not a company programmer, I design peoples Invoices, delivery notes etc)'

Can't start with something I don't know about.
I have to drag it out of the programmers too but thanks anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top