>>>
>>>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement