Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Codes in 'user data' field do not work
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01359522
Message ID:
01359741
Vues:
30
>Hi all!
>In the Solution samples, there is a help about “Dynamic formatting using ReportListeners” sample. In the “DynamicFormatting.FRX”, “orders. Shipvia field” , other tab with “user data” there are codes:
>
*:EFFECTS STYLE = iif(SHIPVIA = 3, 1, 0)
>I change these code:
>
*:EFFECTS SIZE = iif(SHIPVIA = 3, 14, 8)
>But It did not work.
>I would like to change font with name, size, strikethrough, underline… and compound with these properties, how can I change the codes.
>Please help me.
>Thanks

If you are using VFP 9 SP2, you will see a new DYNAMICS tab when you click on a report object. Use that tab to create conditions for applying various formatting changes such as font, color, etc. It works like a CASE statement, so if you have 3 rules listed, it processes the first and if it passes, it appies the formatting and gets out. If not, it moves on and evaluates the next rule and keeps going looking for a rule that passes.

To run the report, you have to make sure one of the ReportListeners in the FFC directory are used. If you just let VFP indirectly instantiate a listener, you're all set because it will do it automatically. By this I mean you SET REPORTBEHAVIOR 90 and just run a report like normal. However, if you try to instantiate a reportlistener yourself, it cannot be the BASE report listener or derived from the BASE. It has to be derived from fxListener (or any of the subclasses of it) in the FFC directory.
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