Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatically adding object
Message
 
À
17/06/2008 13:05:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01324814
Message ID:
01325103
Vues:
13
>Is there a way to programaticaly add into a empty report:
>
>- field with position and some expression
>- label
>- picture with position
>
>Font name and size its also preferable.
>
>I need to create fields through a program, add into report, and then user with "modify report" does fine adjustments of fields position.
>
>Thanks in advance.

You can manipulate an FRX, but it's not easy. There's a class library called _FRXCursor in the FFC directory that ships with FoxPro. This class library contains several classes that are helpful with manipulating reports. The biggest thing to get your head around is the positioning. There isn't a field that tells you what "band" an object is in. It's all a matter of adding up the heights of the various bands, adding extra for the gray bar that appears on the designer between each band, and then looking at the position of each item relative to those bands. It's a real PITA!
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform