Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with _pagetotal
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Problem with _pagetotal
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
Visual FoxPro
Divers
Thread ID:
01040569
Message ID:
01040569
Vues:
72
Hi, I'm upgrading our app from VFP8SP1 to VFP9 and the reporting system is driving me crazy!

After discovering that _PAGETOTAL doesn't work when chaining reports together, I came
back to the old system of running the reports twice calculating the page total on my own.

First problem: I've an object handling the output of my reports, with methods
like "print", "preview", "noOutput", "pdf", and so on.

I'm using SET BEHAVIOR 80.

This is part of the code working with VFP8 inside the NoOutput() method
set printer off
lcCmd = [REPORT FORM ] + cNomeReport + [ NOCONSOLE TO FILE NULL NODIALOG ]
&lcCmd
This doesn't work anymore with VFP9, beacuse:
- it sends the output to the printer.
- it creates a NULL.TXT file with size = 0 bytes
Note that these reports have no printer info inside.

I've had to change it like this:
set printer off
lcCmd = [REPORT FORM ] + cNomeReport + [ NOCONSOLE ]
&lcCmd
This code doesn't send anymore the report to the printer, but the _PAGETOTAL variable is always = 1.
Any suggestion?

I've already tried to use the new report engine but it's really slow compared to the old one.
Furthermore I should change hundreds of reports due to the GDI+ management of fields width.
Répondre
Fil
Voir

Click here to load this message in the networking platform