Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I do this?
Message
De
30/09/2015 02:25:46
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01625190
Message ID:
01625226
Vues:
68
>I need to print 1 page per record on the dbf followed by a second page printed a number of times
>
>So for example record 1 has 5 recipients so I need to print 1 header and 5 recipients pages
>
>So for example record 2 has 10 recipients so I need to print 1 header and 10 recipients pages
>
>Is this possible with VFP report system? If not what should I do
>


As the other guys pointed out, you might accomplish this by smart combination of cursors and grouping. However if each group header
has to be on separate page followed by recipient pages then you might hit the wall with FRX.

It might be an overhead for this task If requirement is flexible, but if precise layout is a must, have look at
www.report-sculptor.com
There you can control 100% creation of each page, but you will have to rebuild report from scratch using form and form objects
(form containers as report band canvases, and labels,textboxes etc. as report content) and then run it all as report from inside code.
You do that by traversing through data (scan/endscan) and creating report as you go.
Hence there is .eject() method which can directly flip new page of a report.

See form report samples is RSDemo project (#07 and up) for more ideas.

HTH
Sergio
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform