Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SFReports - printing from a grid
Message
 
To
15/02/2000 16:01:11
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00330389
Message ID:
00334364
Views:
37
>>>
>>>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
Map
View

Click here to load this message in the networking platform