Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SFReports - printing from a grid
Message
 
À
15/02/2000 16:01:11
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Stonefield
Divers
Thread ID:
00330389
Message ID:
00334364
Vues:
35
>>>
>>>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
Fil
Voir

Click here to load this message in the networking platform