Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Page 1 of x in VFP8 reports
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00923606
Message ID:
00924984
Vues:
34
--
then I cant navigate backwards and forwards on the screen.
Do you know of any way round this ?
---

To answer your question, yes, in VFP 9, I do have a way around it.

First of all, NOPAGEEJECT will work for other output results (such as Preview) instead of only printing, so you will have a combined view of all these reports in the preview, if that's easiest for you <s>.

Doing this, physically doing this and paying attention to the attendant objects and properties, is a must. I really think you need to investigate this further so that you have a real sense of how many different ways there are to express "what is page #1" in VFP 9, and why that might be necessary.

Second, you can easily (in VFP 9) give yourself what you need in the way of a _pageCounter variable without separate reports and NOPAGEEJECT. This has a lot of advantages -- depends on a number of other requirements that you haven't mentioned, such as carrying through calculations through the whole batch.

No, this second approach is not native but it's very few lines of code *and* it does not step on other people's ability to use these properties differently for different requirements. <s>

--
It need not necesarily be _PAGETOTAL. Some other system variable perhaps, like _PageCounter , which would be reset exactly when _PageNo is reset.
---

_PageNo is user-resettable, it does not match .PageNo (which may or may not be what you're after here, depending), and, honestly, you're not (yet) really hearing me about how many different ways there are to assess "when is the page number reset in VFP."

There is no way to get this to work with a simple system variable that was going to satisfy all the possible ways this could come out (given NORESET etc etc). Calling the simple system variable _pageCounter rather than _pageTotal wouldn't change anything <s>.

What seems like a "basic" requirement is actually not, given all the parameters of what constitutes a page reset -- which btw MS Word does *not* have to deal with.

FWIW, essentially, I think that MS Word really does treat multiple sections with page number resets as the equivalent of separate reports with NOPAGEEJECT: part of the same print job, but separate documents.

>L<
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform