Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternating colors in details section of report
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00682336
Message ID:
00682367
Vues:
24
This message has been marked as the solution to the initial question of the thread.
>Hi everyone,
>
>Is there a way to make the VFP7 report writer create the details section of the report in alternating colors (candy stripe) per record?
>

Hi Costas,

- Add a rectangle object to the detail band and adjust it size to the size of the detail band.
- Make it borderless: Format -> Pen -> None.
- Send it to the back: CTRL-J.
- Change it's backcolor to gray.
- Put expression "(recno()%2)=0" into Print When of the object.

It would work only if source of the cursor is a table/cursor in physical order w/o deleted records. To make it work with any source you'll have to create Report Variable to count records and use it in the Print When expression instead of RECNO().
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform