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