>>>
>>>How do you determine which columns are not visible?
>>
>>1) Adding properties to column object
>>
>> loRField.nOrder = loColumn.COLUMNORDER
>> loRField.nColWidth = loColumn.WIDTH
>>
>>2) Sort the column collection ( in the column order )
>>
>>3) Scan the column collection and compare the Grid Width to the column width sum.
>>
>>Marcel
>
>Where do you do this?
>
>Thanks,
>Elyse
Sorry for late reply
This is done in the PRINTGRID.PRG
****
loRField.nOrder = loColumn.COLUMNORDER
loRField.nColWidth = loColumn.WIDTH
NEXT loColumn
loFieldCollection.Sort()
loFieldCollection.LimitSumToMax("nColWidth",toGrid.Width-35)
****
You need to enhance the sfcollection to sort and delete the non visible columns.
Marcel
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only