Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I trap which column is printing? x 2nd
Message
De
02/04/2001 06:40:48
 
 
À
01/04/2001 22:04:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00490797
Message ID:
00490871
Vues:
9
Hi,

Since there is no system variable to determine the column number you may do the following:

Add these functions to your program:
Function InitColumnNumber
    If Type( "m._ColumnNo") = "U"
        Public _ColumnNo
    EndIf
    _ColumnNo = 1
EndFunc

Function IncreaseColumnNumber
    _ColumnNo = m._ColumnNo + 1
EndFunc
Add the following expressions in report designer:
- On Entry expression for Page Header: InitColumnNumber()
- On Exit expression for Column Footer: IncreaseColumnNumber()

Now you may use _ColumnNo variable that will contain the current column number. But, there is one restriction, this will work only if you use column-by-column Print Order.

Hope this helps.


>Hi all,
>
>I posted same message a few days ago and not received good answer yet.
>Hope Anyone make me lighten whether it is impossible or not.
>
>I have a report form which has 2 columns defined IN THE PAGE SETUP DIALOG BOX,
>and wud like to control some actions through 'PRINT WHEN..' according to column
>number. Is there any function or system variables to trap the column number on
>printing?
>
>Any comments would be highly appreciated.
>
>Thanks
>H.K.Lee
Alex
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform