Spread 8.0 Documentation
|
|
DLL
|
Support Options
|
DLL
To create and set up a date cell
-
Call the SSSetTypeDate function and set the parameters as follows:
- Set the lpMax parameter to point to the SS_DATE structure, which contains the maximum date for the cell.
- Set the lpMin parameter to point to the SS_DATE structure, which contains the minimum date for the cell.
- Use the lStyle parameter to specify the text alignment and orientation.
- Specify how the century is calculated by calling the SSSetTwoDigitYearMax function and setting the nTwoDigitYearMax parameter to the calculation date.
- Call the SSSetCellType or SSSetCellTypeRange function and set the CellType parameter to SS_TYPE_DATE.