Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
2 Tables Report
Message
De
27/09/2010 03:00:04
 
 
À
27/09/2010 00:34:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Divers
Thread ID:
01482520
Message ID:
01482818
Vues:
84
>It means, This is the failure of VFP.
>
>I am amazing FPD26 could handle such task then why VFP not.

Conceptually there is not much difference between FP 2.6 FRX designer / engine and VFP6-8
They both have certain conceptual limitations. However back in 2.6 you could fill up those gaps by
reporting programmaticaly via ?/?? commands, whereas in VFP versions 6-9 those commands are no longer sufficient
taking into consideration modern reporting requirements with graphics, fancy fonts etc.

This is one of the reasons why RS was made. If FRX does not cut, you can always create ANY kind of report
programmatically. RS methods .LF() and .LW() are made to cover ?/?? reporting style;
.lf() &&advances one row
.lw(25,'something')  &&write in current line.
Amount of that old style reporting code can be drastically reduced by using more advanced scenario with form objects;
You design your bands visually (as form containers) and then you 'drive them' directly from within code.
.Advance(nPixels) &&advance +/- N pixels up/down the page
.FlashContainer(thisform.myDetailBand)   &&Render form container at current page position

This way you get best of both worlds; Flexibility and precision of coded reporting and ease of visual content design.

Or to put it in context of your report, you design first half of the page as one container and second part as another.
Then call them accordingly in some loop
select table1
scan
  .FlashContainer(thisform.Container1)
  select table2  &&related by some key
  .FlashContainer(thisform.Container2)
  .Eject()
endscan
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